123.dots {4 width: var(--size);5 height: var(--size);6 position: relative;7}8.dot {9 width: var(--size);10 height: var(--size);11 animation: dwl-dot-spin calc(var(--speed) * 5) infinite linear both;12 animation-delay: calc(var(--i) * var(--speed) / (var(--dot-count) + 2) * -1);13 rotate: calc(var(--i) * var(--spread) / (var(--dot-count) - 1));14 position: absolute;15}16.dot::before {17 content: "";18 display: block;19 width: var(--dot-size);20 height: var(--dot-size);21 background-color: var(--color);22 border-radius: 50%;23 position: absolute;24 transform: translate(-50%, -50%);25 bottom: 0;26 left: 50%;27}28@keyframes dwl-dot-spin {29 0% {30 transform: rotate(0deg);31 animation-timing-function: cubic-bezier(0.390, 0.575, 0.565, 1.000);32 opacity: 1;33 }34 2% {35 transform: rotate(20deg);36 animation-timing-function: linear;37 opacity: 1;38 }39 30% {40 transform: rotate(180deg);41 animation-timing-function: cubic-bezier(0.445, 0.050, 0.550, 0.950);42 opacity: 1;43 }44 41% {45 transform: rotate(380deg);46 animation-timing-function: linear;47 opacity: 1;48 }49 69% {50 transform: rotate(520deg);51 animation-timing-function: cubic-bezier(0.445, 0.050, 0.550, 0.950);52 opacity: 1;53 }54 76% {55 opacity: 1;56 }57 76.1% {58 opacity: 0;59 }60 80% {61 transform: rotate(720deg);62 }63 100% {64 opacity: 0;65 }66}
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
.dots {
width: var(--size);
height: var(--size);
position: relative;
}
.dot {
width: var(--size);
height: var(--size);
animation: dwl-dot-spin calc(var(--speed) * 5) infinite linear both;
animation-delay: calc(var(--i) * var(--speed) / (var(--dot-count) + 2) * -1);
rotate: calc(var(--i) * var(--spread) / (var(--dot-count) - 1));
position: absolute;
}
.dot::before {
content: "";
display: block;
width: var(--dot-size);
height: var(--dot-size);
background-color: var(--color);
border-radius: 50%;
position: absolute;
transform: translate(-50%, -50%);
bottom: 0;
left: 50%;
}
@keyframes dwl-dot-spin {
0% {
transform: rotate(0deg);
animation-timing-function: cubic-bezier(0.390, 0.575, 0.565, 1.000);
opacity: 1;
}
2% {
transform: rotate(20deg);
animation-timing-function: linear;
opacity: 1;
}
30% {
transform: rotate(180deg);
animation-timing-function: cubic-bezier(0.445, 0.050, 0.550, 0.950);
opacity: 1;
}
41% {
transform: rotate(380deg);
animation-timing-function: linear;
opacity: 1;
}
69% {
transform: rotate(520deg);
animation-timing-function: cubic-bezier(0.445, 0.050, 0.550, 0.950);
opacity: 1;
}
76% {
opacity: 1;
}
76.1% {
opacity: 0;
}
80% {
transform: rotate(720deg);
}
100% {
opacity: 0;
}
}
You need to sign in before you can write a comment.