1
- * , * ::after , * ::before {
2
- margin : 0 ;
3
- padding : 0 ;
4
- box-sizing : inherit;
5
- }
6
- html {
7
- font-size : 62.5% ;
8
- }
1
+ * ,
2
+ * ::after ,
3
+ * ::before {
4
+ margin : 0 ;
5
+ padding : 0 ;
6
+ box-sizing : inherit; }
7
+
8
+ html {
9
+ font-size : 62.5% ; }
10
+
9
11
body {
10
- font-family : 'Lato' , sans-serif;
11
- font-weight : 400 ;
12
- font-size : 1.6rem ;
13
- line-height : 1.7 ;
14
- color : # 777 ;
15
- padding : 3rem ;
16
- box-sizing : border-box;
17
- }
12
+ font-family : 'Lato' , sans-serif;
13
+ font-weight : 400 ;
14
+ font-size : 1.6rem ;
15
+ line-height : 1.7 ;
16
+ color : # 777 ;
17
+ padding : 3rem ;
18
+ box-sizing : border-box; }
19
+
18
20
.header {
19
- height : 95vh ;
20
- background-image : linear-gradient (
21
- to right bottom,
22
- rgba (126 , 213 , 111 , 0.8 ),
23
- rgba (40 , 180 , 131 , 0.8 )),
24
- url(../ img/hero.jpg);
25
- background-size : cover;
26
- background-position : top;
27
- clip-path : polygon (0 0 , 100% 0 , 100% 75% , 0 100% );
28
- position : relative;
29
- }
30
- .header__logo-box {
21
+ height : 95vh ;
22
+ background-image : linear-gradient (to right bottom, rgba (126 , 213 , 111 , 0.8 ), rgba (126 , 213 , 111 , 0.8 )), url(../ img/hero.jpg);
23
+ background-size : cover;
24
+ background-position : top;
25
+ clip-path : polygon (0 0 , 100% 0 , 100% 75% , 0 100% );
26
+ position : relative; }
27
+ .header__logo .box {
31
28
position : absolute;
32
29
top : 4rem ;
33
- left : 4rem ;
34
- }
35
- .logo {
36
- height : 3.5rem ;
37
- }
38
- .header__text-box {
30
+ left : 4rem ; }
31
+ .header__text-box {
39
32
position : absolute;
40
33
top : 40% ;
41
34
left : 50% ;
42
35
transform : translate (-50% , -50% );
43
- text-align : center;
44
- }
36
+ text-align : center; }
37
+ .header__logo {
38
+ height : 3.5rem ; }
39
+
45
40
.heading-primary {
46
- color : # fff ;
47
- text-transform : uppercase;
48
- backface-visibility : hidden;
49
- margin-bottom : 6rem ;
50
- }
51
- .heading-primary--main {
41
+ color : # fff ;
42
+ text-transform : uppercase;
43
+ backface-visibility : hidden;
44
+ margin-bottom : 6rem ; }
45
+ .heading-primary--main {
52
46
display : block;
53
47
font-size : 6rem ;
54
48
font-weight : 500 ;
55
49
letter-spacing : 3.5rem ;
56
- animation-name : moveInLeft; /* specify animation name and animation duration */
50
+ animation-name : moveInLeft;
51
+ /* specify animation name and animation duration */
57
52
animation-duration : 1s ;
58
- /* animation-delay: 3s; wait for 3 seconds before starting the animation */
59
- /* animation-iteration-count: 3; Happens for 3 times */
60
- animation-timing-function : ease-out;
61
- }
62
- .heading-primary--sub {
53
+ /* animation-delay: 3s; wait for 3 seconds before starting the animation */
54
+ /* animation-iteration-count: 3; Happens for 3 times */
55
+ animation-timing-function : ease-out; }
56
+ .heading-primary--sub {
63
57
display : block;
64
58
font-size : 2rem ;
65
59
font-weight : 700 ;
66
60
letter-spacing : 1.74rem ;
67
- animation : moveInRight 1s ease-out;
68
- }
61
+ animation : moveInRight 1s ease-out; }
62
+
69
63
/* Browsers are optimized for opacity and transform properties for animations */
70
64
@keyframes moveInLeft {
71
- 0% {
72
- opacity : 0 ;
73
- transform : translateX (-10rem ); /*positive to the right, negative to the left */
74
- }
75
- /* 60% {
65
+ 0% {
66
+ opacity : 0 ;
67
+ transform : translateX (-10rem );
68
+ /*positive to the right, negative to the left */ }
69
+ /* 60% {
76
70
tranform: rotate(180deg);
77
71
} */
78
- 80% {
79
- transform : translateX (1rem ); /* moves to right */
80
- }
81
- 100% {
82
- opacity : 1 ;
83
- transform : translate (0 );
84
- }
85
- }
72
+ 80% {
73
+ transform : translateX (1rem );
74
+ /* moves to right */ }
75
+ 100% {
76
+ opacity : 1 ;
77
+ transform : translate (0 ); } }
78
+
86
79
@keyframes moveInRight {
87
- 0% {
88
- opacity : 0 ;
89
- transform : translateX (10rem ); /*positive to the right, negative to the left */
90
- }
91
- 80% {
92
- transform : translateX (-1rem ); /* moves to right */
93
- }
94
- 100% {
95
- opacity : 1 ;
96
- transform : translate (0 );
97
- }
98
- }
80
+ 0% {
81
+ opacity : 0 ;
82
+ transform : translateX (10rem );
83
+ /*positive to the right, negative to the left */ }
84
+ 80% {
85
+ transform : translateX (-1rem );
86
+ /* moves to right */ }
87
+ 100% {
88
+ opacity : 1 ;
89
+ transform : translate (0 ); } }
90
+
99
91
@keyframes moveInButton {
100
- 0% {
101
- opacity : 0 ;
102
- transform : translateY (3rem ); /*positive to the right/down, negative to the left/up */
103
- }
104
- 100% {
105
- opacity : 1 ;
106
- transform : translate (0 );
107
- }
108
- }
109
- .btn : link ,
110
- .btn : visited {
111
- text-transform : uppercase;
112
- text-decoration : none;
113
- padding : 1.5rem 4rem ;
114
- display : inline-block;
115
- border-radius : 10rem ;
116
- transition : all 0.2s ;
117
- position : relative;
118
- }
92
+ 0% {
93
+ opacity : 0 ;
94
+ transform : translateY (3rem );
95
+ /*positive to the right/down, negative to the left/up */ }
96
+ 100% {
97
+ opacity : 1 ;
98
+ transform : translate (0 ); } }
99
+
100
+ .btn : link , .btn : visited {
101
+ text-transform : uppercase;
102
+ text-decoration : none;
103
+ padding : 1.5rem 4rem ;
104
+ display : inline-block;
105
+ border-radius : 10rem ;
106
+ transition : all 0.2s ;
107
+ position : relative; }
108
+
119
109
.btn : hover {
120
- transform : translateY (-0.3rem );
121
- box-shadow : 0 1rem 2rem rgba (0 , 0 , 0 , 0.2 );
122
- }
110
+ transform : translateY (-0.3rem );
111
+ box-shadow : 0 1rem 2rem rgba (0 , 0 , 0 , 0.2 ); }
112
+ .btn : hover ::after {
113
+ transform : scaleX (1.4 ) scaleY (1.6 );
114
+ opacity : 0 ; }
115
+
123
116
.btn : active {
124
- transform : translateY (0.1rem );
125
- box-shadow : 0 0.2rem 1rem rgba (0 , 0 , 0 , 0.2 );
126
- }
117
+ transform : translateY (0.1rem );
118
+ box-shadow : 0 0.2rem 1rem rgba (0 , 0 , 0 , 0.2 ); }
119
+
127
120
.btn--white {
128
- background-color : # fff ;
129
- color : # 777 ;
130
- }
121
+ background-color : # fff ;
122
+ color : # 777 ; }
123
+ .btn--white ::after {
124
+ background-color : # fff ; }
125
+
131
126
.btn ::after {
132
- content : '' ;
133
- display : inline-block;
134
- height : 100% ;
135
- width : 100% ;
136
- border-radius : 10rem ;
137
- position : absolute;
138
- top : 0 ;
139
- left : 0 ;
140
- z-index : -1 ;
141
- transition : all 0.4s ;
142
- }
143
- .btn--white ::after {
144
- background-color : # fff ;
145
- }
146
- .btn : hover ::after {
147
- transform : scaleX (1.4 ) scaleY (1.6 );
148
- opacity : 0 ; /* fade something about */
149
- }
127
+ content : '' ;
128
+ display : inline-block;
129
+ height : 100% ;
130
+ width : 100% ;
131
+ border-radius : 10rem ;
132
+ position : absolute;
133
+ top : 0 ;
134
+ left : 0 ;
135
+ z-index : -1 ;
136
+ transition : all 0.4s ; }
137
+
150
138
.btn--animated {
151
- animation : moveInButton 0.5s ease-out 0.75s ; /* animation-name, animation-duration, animation-timing-function, animation-delay */
152
- animation-fill-mode : backwards; /*automatically apply styles of 0% before animation starts */
153
- }
139
+ animation : moveInButton 0.5s ease-out 0.75s ;
140
+ /* animation-name, animation-duration, animation-timing-function, animation-delay */
141
+ animation-fill-mode : backwards;
142
+ /*automatically apply styles of 0% before animation starts */ }
0 commit comments