123.loader {4 display: inline-flex;5 gap: 10px;6}7.loader:before, .loader:after {8 content: "";9 height: 20px;10 aspect-ratio: 1;11 border-radius: 50%;12 background: radial-gradient(farthest-side,#000 95%,#0000) 35% 35%/6px 6px no-repeat #fff;13 transform: scaleX(var(--s,1)) rotate(0deg);14 animation: l6 1s infinite linear;15}16.loader:after {17 --s: -1;18 animation-delay: -0.1s;19}20@keyframes l6 {21 100% {22 transform: scaleX(var(--s,1)) rotate(360deg);23 }24}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
.loader {
display: inline-flex;
gap: 10px;
}
.loader:before, .loader:after {
content: "";
height: 20px;
aspect-ratio: 1;
border-radius: 50%;
background: radial-gradient(farthest-side,#000 95%,#0000) 35% 35%/6px 6px no-repeat #fff;
transform: scaleX(var(--s,1)) rotate(0deg);
animation: l6 1s infinite linear;
}
.loader:after {
--s: -1;
animation-delay: -0.1s;
}
@keyframes l6 {
100% {
transform: scaleX(var(--s,1)) rotate(360deg);
}
}
You need to sign in before you can write a comment.