-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathheader.css
More file actions
148 lines (128 loc) · 3.02 KB
/
header.css
File metadata and controls
148 lines (128 loc) · 3.02 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
*,
*::after,
*::before {
margin: 0;
padding: 0;
box-sizing: inherit; }
html {
font-size: 62.5%; }
body {
font-family: sans-serif;
font-weight: 400;
/*font-size: 16px;*/
line-height: 1.7;
color: #777;
padding: 2.5rem;
box-sizing: border-box; }
.header {
height: 95vh;
background-image: linear-gradient(to right bottom, rgba(126, 213, 111, 0.8), rgba(40, 180, 133, 0.8)), url(img/hero.jpg);
background-size: cover;
position: relative;
background-position: center;
clip-path: polygon(0 0, 100% 0, 100% 80vh, 0 100%); }
.header__logo-box {
position: absolute;
top: 4rem;
left: 4rem; }
.header__logo {
height: 3.5rem; }
.header__text-box {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
text-align: center; }
.heading-primary {
color: #fff;
text-transform: uppercase;
margin-bottom: 6rem; }
.heading-primary--main {
display: block;
font-size: 6rem;
font-weight: 500;
letter-spacing: 3.5rem;
animation-name: moveInLeft;
animation-duration: 1s;
/*animation-delay: 2s; animation will start after 2 seconds.
animation-iteration-count: 3; how many times animation will run.*/
animation-timing-function: ease-out; }
.heading-primary--sub {
display: block;
font-size: 2rem;
font-weight: 700;
letter-spacing: 1.7rem;
animation: moveInRight 1s ease-out; }
@keyframes moveInLeft {
0% {
opacity: 0;
transform: translateX(-10rem); }
80% {
transform: translateX(1.5rem); }
100% {
opacity: 1;
transform: translateX(0); } }
@keyframes moveInRight {
0% {
opacity: 0;
transform: translateX(10rem); }
80% {
transform: translateX(-1rem); }
100% {
opacity: 1;
transform: translateX(0); } }
/*.logo:hover{
animation: moveInRight 1s ease-out;
}
h3{
font-size: 15vw;
}*/
.btn:link,
.btn:visited {
/*Visited statement:users clicked on the button before and then sees the button again*/
text-transform: uppercase;
text-decoration: none;
padding: 1.5rem 4rem;
display: inline-block;
border-radius: 10rem;
transition: all .2s;
position: relative;
font-size: 1.6rem; }
.btn:hover {
transform: translateY(-0.3rem);
box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.2);
/* 0 means x direction has no shadow.
5px means shadow will be 5px down.10px means blur value.
0,0,0 means black and .2 means capacity of color*/ }
.btn:active {
transform: translateY(-0.1rem);
box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.2); }
.btn--white {
background-color: #fff;
color: #777; }
.btn::after {
content: "";
display: inline-block;
height: 100%;
width: 100%;
border-radius: 10rem;
position: absolute;
top: 0;
left: 0;
z-index: -1;
transition: all .4s; }
.btn--white::after {
background-color: #800; }
.btn:hover::after {
transform: scaleX(1.4) scaleY(1.6);
opacity: 0; }
@keyframes moveInBottom {
0% {
opacity: 0;
transform: translateY(3rem); }
100% {
opacity: 1;
transform: translate(0); } }
.btn--animated {
animation: moveInBottom .5s ease-out .75s;
animation-fill-mode: backwards; }