-
Notifications
You must be signed in to change notification settings - Fork 16
/
style.scss
210 lines (193 loc) · 4.23 KB
/
style.scss
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
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
@import url("https://fonts.googleapis.com/css?family=Montserrat+Alternates");
html {
height: 200vh;
background: radial-gradient(ellipse at center, #dbb800 0%, #688acc 50%);
cursor: pointer;
}
body {
height: 100vh;
overflow: hidden;
border-bottom: 10vh #339545 solid;
box-sizing: border-box;
position: relative;
}
h1 {
text-align: center;
color: white;
font-family: "Montserrat Alternates", sans-serif;
font-size: 40px;
position: absolute;
z-index: 1;
width: 100%;
top: 0vh;
transform: translate(0, 100vh);
animation: move 1s 2.5s forwards;
}
@keyframes move {
0% {
transform: translate(0, 100vh);
}
100% {
transform: translate(0vh, 0);
}
}
.sunflwr {
width: 80vmin;
height: 80vmin;
position: absolute;
bottom: 0;
left: 50%;
transform: translate(-50%, 0%);
&__leaf--left {
width: 0%;
height: 20%;
border-radius: 0% 50% 0% 50%;
position: absolute;
background: lighten(#556d39, 10%);
top: 70%;
left: 45%;
transform: translate(-100%, -50%) rotate(-20deg);
animation: sunflwr__leaf forwards 1s 0.5s;
}
&__leaf--right {
@extend .sunflwr__leaf--left;
top: 80%;
left: 55%;
transform: translate(0%, -50%) rotate(-70deg);
}
@keyframes sunflwr__leaf {
0% {
width: 0%;
border: 0px solid black;
}
100% {
width: 20%;
border: 2px solid black;
}
}
&__stem {
position: absolute;
transform: translate(-50%, 0%);
width: 5%;
height: 60%;
background: #556d39;
left: 50%;
bottom: 0%;
border: 2px solid black;
animation: sunflwr__stem forwards 1s;
}
@keyframes sunflwr__stem {
0% {
height: 0;
}
100% {
height: 60%;
}
}
&__center {
// width: 30%;
// height: 30%;
border-radius: 50%;
background-color: #3c1f03;
transform: translate(-50%, -50%);
position: absolute;
left: 50%;
top: 40%;
z-index: 2;
animation: sunflwr__center 1s 1s forwards;
}
@keyframes sunflwr__center {
0% {
width: 0%;
height: 0%;
}
100% {
width: 25%;
height: 25%;
}
}
&__pedal--1 {
// width: 15%;
// height: 50%;
border-radius: 50%;
background: #f2fe00;
transform: translate(-50%, -50%);
position: absolute;
left: 50%;
top: 40%;
// border: 2px solid black;
animation: grow-pedal-back 1s 1.5s forwards;
}
&__pedal--2 {
@extend .sunflwr__pedal--1;
transform: translate(-50%, -50%) rotate(30deg);
}
&__pedal--3 {
@extend .sunflwr__pedal--1;
transform: translate(-50%, -50%) rotate(60deg);
}
&__pedal--4 {
@extend .sunflwr__pedal--1;
transform: translate(-50%, -50%) rotate(90deg);
}
&__pedal--5 {
@extend .sunflwr__pedal--1;
transform: translate(-50%, -50%) rotate(120deg);
}
&__pedal--6 {
@extend .sunflwr__pedal--1;
transform: translate(-50%, -50%) rotate(150deg);
}
@keyframes grow-pedal-back {
0% {
width: 0%;
height: 0%;
border: 0px solid black;
}
100% {
width: 15%;
height: 45%;
border: 2px solid black;
}
}
&__pedal--7 {
@extend .sunflwr__pedal--1;
// height: 40%;
// width: 10%;
border-radius: 20% 50% 20% 50%;
transform: translate(-50%, -50%) rotate(15deg);
animation: grow-pedal-front 1s 2s forwards;
}
&__pedal--8 {
@extend .sunflwr__pedal--7;
transform: translate(-50%, -50%) rotate(45deg);
}
&__pedal--9 {
@extend .sunflwr__pedal--7;
transform: translate(-50%, -50%) rotate(75deg);
}
&__pedal--10 {
@extend .sunflwr__pedal--7;
transform: translate(-50%, -50%) rotate(105deg);
}
&__pedal--11 {
@extend .sunflwr__pedal--7;
transform: translate(-50%, -50%) rotate(135deg);
}
&__pedal--12 {
@extend .sunflwr__pedal--7;
transform: translate(-50%, -50%) rotate(165deg);
}
@keyframes grow-pedal-front {
0% {
height: 0%;
width: 0%;
border: 0px solid black;
}
100% {
height: 35%;
width: 10%;
border: 2px solid black;
}
}
}