-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathday25.html
More file actions
262 lines (219 loc) · 6.39 KB
/
day25.html
File metadata and controls
262 lines (219 loc) · 6.39 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
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
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>DAY 25 | CSS CHALLENGE</title>
<style>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
main {
display: grid;
place-items: center;
min-height: 100vh;
}
.frame {
position: relative;
width: 400px;
height: 400px;
border-radius: 1rem;
box-shadow: 1px 2px 10px 0px rgba(0, 0, 0, 0.3);
background: #DD3C54;
display: flex;
align-items: center;
justify-content: center;
}
.bell {
fill: #fff;
animation: shake 2.5s ease infinite;
}
.line {
fill: none;
stroke: #fff;
stroke-width: 2;
stroke-linecap: round;
position: absolute;
top: 170px;
animation-duration: 2.5s;
animation-timing-function: ease-out;
animation-iteration-count: infinite;
animation-fill-mode: both;
}
.line-1,
.line-2,
.line-3 {
left: 230px;
}
.line-4,
.line-5,
.line-6 {
right: 230px;
}
.line-1 {
animation-name: line-1;
}
.line-2 {
animation-name: line-2;
}
.line-3 {
animation-name: line-3;
}
.line-4 {
animation-name: line-4;
}
.line-5 {
animation-name: line-5;
}
.line-6 {
animation-name: line-6;
}
@keyframes line-1 {
0% {
transform: translate3d(0, 0, 0) scale(1);
opacity: 1;
}
50%,
100% {
transform: translate3d(60px, 0, 0) scale(2);
opacity: 0;
}
}
@keyframes line-2 {
0%,
19% {
opacity: 0;
}
20% {
transform: translate3d(0, 0, 0) scale(1);
opacity: 1;
}
70%,
100% {
transform: translate3d(60px, 0, 0) scale(2);
opacity: 0;
}
}
@keyframes line-3 {
0%,
39% {
opacity: 0;
}
40% {
transform: translate3d(0, 0, 0) scale(1);
opacity: 1;
}
90%,
100% {
transform: translate3d(60px, 0, 0) scale(2);
opacity: 0;
}
}
@keyframes line-4 {
0% {
transform: translate3d(0, 0, 0) scale(1);
opacity: 1;
}
50%,
100% {
transform: translate3d(-60px, 0, 0) scale(2);
opacity: 0;
}
}
@keyframes line-5 {
0%,
19% {
opacity: 0;
}
20% {
transform: translate3d(0, 0, 0) scale(1);
opacity: 1;
}
70%,
100% {
transform: translate3d(-60px, 0, 0) scale(2);
opacity: 0;
}
}
@keyframes line-6 {
0%,
39% {
opacity: 0;
}
40% {
transform: translate3d(0, 0, 0) scale(1);
opacity: 1;
}
90%,
100% {
transform: translate3d(-60px, 0, 0) scale(2);
opacity: 0;
}
}
@keyframes shake {
0%,
50%,
100% {
transform: rotate(0);
}
5%,
10%,
15%,
20%,
25%,
30%,
35%,
40% {
transform: rotate(6deg);
}
45% {
transform: rotate(4deg);
}
7.5%,
12.5%,
17.5%,
22.5%,
27.5%,
32.5%,
37.5%,
42.5% {
transform: rotate(-6deg);
}
47.5% {
transform: rotate(-2deg);
}
}
</style>
</head>
<body>
<main>
<div class="frame">
<svg width="14px" height="60px" class="line line-1">
<path d="M2,58 C14,45 14,15 2,2"></path>
</svg>
<svg width="14px" height="60px" class="line line-2">
<path d="M2,58 C14,45 14,15 2,2"></path>
</svg>
<svg width="14px" height="60px" class="line line-3">
<path d="M2,58 C14,45 14,15 2,2"></path>
</svg>
<svg width="14px" height="60px" class="line line-4">
<path d="M12,58 C0,45 0,15 12,2"></path>
</svg>
<svg width="14px" height="60px" class="line line-5">
<path d="M12,58 C0,45 0,15 12,2"></path>
</svg>
<svg width="14px" height="60px" class="line line-6">
<path d="M12,58 C0,45 0,15 12,2"></path>
</svg>
<svg width="50px" height="54px" viewBox="0 0 50 54" class="bell">
<path
d="M1.13063517,45.0453694 C1.88439195,45.7991262 2.80138269,46.1760046 3.82399539,46.1760046 L17.2955975,46.1760046 C17.2955975,48.331653 18.0493543,50.110423 19.5592683,51.6179365 C21.0667819,53.1254501 22.8983629,53.8816074 25.0012002,53.8816074 C27.1544481,53.8816074 28.9332181,53.1254501 30.4431322,51.6179365 C31.9506457,50.110423 32.7044025,48.331653 32.7044025,46.1760046 L46.1760046,46.1760046 C47.1986173,46.1760046 48.115608,45.7991262 48.8693648,45.0453694 C49.6231216,44.2892122 50,43.3746219 50,42.3496087 C46.1760046,39.1185367 43.3194104,35.1313073 41.379807,30.3879207 C39.4402036,25.6469346 38.4704018,20.6370925 38.4704018,15.408805 C38.4704018,12.0697105 37.5006001,9.48197225 35.6138077,7.54236881 C33.6742042,5.54995439 31.033655,4.41931922 27.6945605,3.98722934 C27.8553939,3.66316194 27.9106054,3.28628355 27.9106054,2.90940516 C27.9106054,2.10043689 27.639349,1.40189159 27.0488262,0.86177925 C26.5087138,0.268855922 25.807768,0 25.0012002,0 C24.192232,0 23.5464977,0.268855922 23.0063853,0.86177925 C22.413462,1.40189159 22.1446061,2.10043689 22.1446061,2.90940516 C22.1446061,3.28628355 22.1974171,3.66316194 22.360651,3.98722934 C19.019156,4.41931922 16.3786068,5.54995439 14.4390033,7.54236881 C12.4993999,9.48197225 11.5295982,12.0697105 11.5295982,15.408805 C11.5295982,20.6370925 10.5597964,25.6469346 8.620193,30.3879207 C6.68058956,35.1313073 3.82399539,39.1185367 0,42.3496087 C0,43.3746219 0.376878391,44.2892122 1.13063517,45.0453694 L1.13063517,45.0453694 Z M20.2050026,45.6911037 C20.52907,45.6911037 20.6899035,45.8519372 20.6899035,46.1760046 C20.6899035,47.3618513 21.1195929,48.384464 21.9837726,49.1934322 C22.7903404,50.0552115 23.8153536,50.4873014 25.0012002,50.4873014 C25.3228672,50.4873014 25.4861011,50.6481348 25.4861011,50.9722022 C25.4861011,51.2938691 25.3228672,51.4571031 25.0012002,51.4571031 C23.5464977,51.4571031 22.3054395,50.9169907 21.2828268,49.894378 C20.2578136,48.8693648 19.7201018,47.6307072 19.7201018,46.1760046 C19.7201018,45.8519372 19.8809352,45.6911037 20.2050026,45.6911037 L20.2050026,45.6911037 Z">
</path>
</svg>
</div>
</main>
</body>
</html>