-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsoundwaves.css
85 lines (67 loc) · 1.42 KB
/
soundwaves.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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
.soundwaves {
display: flex;
align-items: center;
justify-content: center;
height: 500px;
}
.soundwave {
margin: 10px;
width: 20px;
height: 30%;
border-radius: 10px;
}
.soundwave:nth-child(1n) {
background: #fecf6a;
}
.soundwave:nth-child(2n) {
background: #6afecf;
}
.soundwave:nth-child(3n) {
background: #6acffe;
}
.soundwave:nth-child(4n) {
background: #cf6afe;
}
.soundwave:nth-child(6n+1) {
animation: undulate4 2.5s linear infinite;
}
.soundwave:nth-child(6n+2) {
animation: undulate3 2.5s linear infinite;
}
.soundwave:nth-child(6n+3) {
animation: undulate2 2.5s linear 0.25s infinite;
}
.soundwave:nth-child(6n+4) {
animation: undulate1 2.5s linear 0.5s infinite;
}
.soundwave:nth-child(6n+5) {
animation: undulate2 2.5s linear 0.75s infinite;
}
.soundwave:nth-child(6n+6) {
animation: undulate3 2.5s linear 1s infinite;
}
@keyframes undulate1 {
10% { height: 30%; }
30% { height: 60%; }
70% { height: 70%; }
100% { height: 30%; }
}
@keyframes undulate2 {
10% { height: 30%; }
30% { height: 40%; }
70% { height: 80%; }
100% { height: 30%; }
}
@keyframes undulate3 {
10% { height: 30%; }
30% { height: 40%; }
70% { height: 60%; }
100% { height: 30%; }
}
@keyframes undulate4 {
10% { height: 30%; }
25% { height: 35%; }
50% { height: 38%; }
75% { height: 35%; }
100% { height: 30%; }
}