-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
45 lines (40 loc) · 940 Bytes
/
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
.box {
position: relative;
width: 500px;
height: 500px;
display: flex;
justify-content: center;
}
.box span {
position: absolute;
width: 10px;
height: 250px;
background: transparent;
border-bottom: 40px solid transparent;
transform-origin: bottom;
transform: rotate(calc(22.5deg * var(--i)));
}
.box span::before {
content: "";
position: absolute;
width: 100px;
height: 50px;
background: #0af;
box-shadow: 0 0 20px #0af;
border-radius: 10px;
animation: animate 1.5s linear infinite;
animation-delay: calc(0.1s * var(--i));
}
@keyframes animate {
0% {
transform: translateY(160px) rotate(-45deg);
filter: hue-rotate(0deg);
}
50% {
transform: translateY(90px);
}
100% {
transform: translateY(160px) rotate(45deg);
filter: hue-rotate(360deg);
}
}