-
Notifications
You must be signed in to change notification settings - Fork 0
/
music_wave_anim.html
82 lines (82 loc) · 1.84 KB
/
music_wave_anim.html
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Music Wawe Animation Effect 2</title>
<style>
body {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
height: 100vh;
margin: 0;
padding: 0;
box-sizing: border-box;
background-color: #00002f;
}
.music-wave {
position: relative;
}
.music-wave span {
position: absolute;
width: 5px;
height: 5px;
bottom: 0;
animation: wave 0.5s ease infinite;
}
.music-wave span:nth-child(1) {
animation-delay: 0.3s;
background-color: #ff8c00;
}
.music-wave span:nth-child(2) {
animation-delay: 0.4s;
background-color: #ffff00;
margin-left: 7px;
}
.music-wave span:nth-child(3) {
animation-delay: 0.6s;
background-color: #26d53a;
margin-left: 14px;
}
.music-wave span:nth-child(4) {
animation-delay: 0.8s;
background-color: #26e6a3;
margin-left: 21px;
}
.music-wave span:nth-child(5) {
animation-delay: 1s;
background-color: #1da8e2;
margin-left: 28px;
}
@keyframes wave {
0% {
height: 5px;
}
30% {
height: 15px;
}
60% {
height: 20px;
}
80% {
height: 15px;
}
100% {
height: 10px;
}
}
</style>
</head>
<body>
<div class="music-wave">
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
</div>
</body>
</html>