1234.loader {5 display: flex;6 justify-content: center;7 align-items: center;8 height: 10em;9}1011.circle {12 width: 1em;13 height: 1em;14 margin: 0 0.25em;15 border-radius: 50%;16 background-color: #a8d5e2;17 animation: wave 1.5s infinite ease-in-out;18 transition: background-color 0.3s ease;19}2021@keyframes wave {22 0%, 100% {23 transform: translateY(0);24 }25 50% {26 transform: translateY(-1em);27 }28}2930.circle:nth-child(1) {31 animation-delay: 0s;32}33.circle:nth-child(2) {34 animation-delay: 0.2s;35}36.circle:nth-child(3) {37 animation-delay: 0.4s;38}39.circle:nth-child(4) {40 animation-delay: 0.6s;41}42.circle:nth-child(5) {43 animation-delay: 0.8s;44}
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
.loader {
display: flex;
justify-content: center;
align-items: center;
height: 10em;
}
.circle {
width: 1em;
height: 1em;
margin: 0 0.25em;
border-radius: 50%;
background-color: #a8d5e2;
animation: wave 1.5s infinite ease-in-out;
transition: background-color 0.3s ease;
}
@keyframes wave {
0%, 100% {
transform: translateY(0);
}
50% {
transform: translateY(-1em);
}
}
.circle:nth-child(1) {
animation-delay: 0s;
}
.circle:nth-child(2) {
animation-delay: 0.2s;
}
.circle:nth-child(3) {
animation-delay: 0.4s;
}
.circle:nth-child(4) {
animation-delay: 0.6s;
}
.circle:nth-child(5) {
animation-delay: 0.8s;
}
You need to sign in before you can write a comment.