-
Notifications
You must be signed in to change notification settings - Fork 15
/
style.css
177 lines (174 loc) · 3.7 KB
/
style.css
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
@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%);
}
.sunflwr__leaf--left, .sunflwr__leaf--right {
width: 0%;
height: 20%;
border-radius: 0% 50% 0% 50%;
position: absolute;
background: #6f8e4b;
top: 70%;
left: 45%;
transform: translate(-100%, -50%) rotate(-20deg);
animation: sunflwr__leaf forwards 1s 0.5s;
}
.sunflwr__leaf--right {
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;
}
}
.sunflwr__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%;
}
}
.sunflwr__center {
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%;
}
}
.sunflwr__pedal--1, .sunflwr__pedal--7, .sunflwr__pedal--12, .sunflwr__pedal--11, .sunflwr__pedal--10, .sunflwr__pedal--9, .sunflwr__pedal--8, .sunflwr__pedal--6, .sunflwr__pedal--5, .sunflwr__pedal--4, .sunflwr__pedal--3, .sunflwr__pedal--2 {
border-radius: 50%;
background: #f2fe00;
transform: translate(-50%, -50%);
position: absolute;
left: 50%;
top: 40%;
animation: grow-pedal-back 1s 1.5s forwards;
}
.sunflwr__pedal--2 {
transform: translate(-50%, -50%) rotate(30deg);
}
.sunflwr__pedal--3 {
transform: translate(-50%, -50%) rotate(60deg);
}
.sunflwr__pedal--4 {
transform: translate(-50%, -50%) rotate(90deg);
}
.sunflwr__pedal--5 {
transform: translate(-50%, -50%) rotate(120deg);
}
.sunflwr__pedal--6 {
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;
}
}
.sunflwr__pedal--7, .sunflwr__pedal--12, .sunflwr__pedal--11, .sunflwr__pedal--10, .sunflwr__pedal--9, .sunflwr__pedal--8 {
border-radius: 20% 50% 20% 50%;
transform: translate(-50%, -50%) rotate(15deg);
animation: grow-pedal-front 1s 2s forwards;
}
.sunflwr__pedal--8 {
transform: translate(-50%, -50%) rotate(45deg);
}
.sunflwr__pedal--9 {
transform: translate(-50%, -50%) rotate(75deg);
}
.sunflwr__pedal--10 {
transform: translate(-50%, -50%) rotate(105deg);
}
.sunflwr__pedal--11 {
transform: translate(-50%, -50%) rotate(135deg);
}
.sunflwr__pedal--12 {
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;
}
}/*# sourceMappingURL=style.css.map */