123.loader {4 height: 50px;5 display: flex;6 align-items: flex-end;7 gap: 3px;8}9.bar {10 height: 5px;11 width: 12px;12 animation-duration: 0.45s;13 animation-name: changeHeight;14 animation-iteration-count: infinite;15 animation-direction: alternate;16}17.red {18 background-color: #E50000;19 box-shadow: 1px 1px 10px #E50000;20 animation-delay: 0.10s;21}22.orange {23 background-color: #FF8D00;24 box-shadow: 1px 1px 10px #FF8D00;25 animation-delay: 0.20s;26}27.yellow {28 background-color: #FFEE00;29 box-shadow: 1px 1px 10px #FFEE00;30 animation-delay: 0.25s;31}32.green {33 background-color: #008121;34 box-shadow: 1px 1px 10px #008121;35 animation-delay: 0.30s;36}37.blue {38 background-color: #004CFF;39 box-shadow: 1px 1px 10px #004CFF;40 animation-delay: 0.35s;41}42.violet {43 background-color: #760188;44 box-shadow: 1px 1px 10px #760188;45 animation-delay: 0.40s;46}47@keyframes changeHeight {48 from {49 height: 5px;50 }51 to {52 height: 40px;53 }54}
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
.loader {
height: 50px;
display: flex;
align-items: flex-end;
gap: 3px;
}
.bar {
height: 5px;
width: 12px;
animation-duration: 0.45s;
animation-name: changeHeight;
animation-iteration-count: infinite;
animation-direction: alternate;
}
.red {
background-color: #E50000;
box-shadow: 1px 1px 10px #E50000;
animation-delay: 0.10s;
}
.orange {
background-color: #FF8D00;
box-shadow: 1px 1px 10px #FF8D00;
animation-delay: 0.20s;
}
.yellow {
background-color: #FFEE00;
box-shadow: 1px 1px 10px #FFEE00;
animation-delay: 0.25s;
}
.green {
background-color: #008121;
box-shadow: 1px 1px 10px #008121;
animation-delay: 0.30s;
}
.blue {
background-color: #004CFF;
box-shadow: 1px 1px 10px #004CFF;
animation-delay: 0.35s;
}
.violet {
background-color: #760188;
box-shadow: 1px 1px 10px #760188;
animation-delay: 0.40s;
}
@keyframes changeHeight {
from {
height: 5px;
}
to {
height: 40px;
}
}
You need to sign in before you can write a comment.