<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>语音播放动效</title>
<style type="text/css">
@keyframes yuying1{
0%{
height: 10%;
}
20%{
height: 50%;
}
50%{
height: 100%;
}
80%{
height: 50%;
}
100%{
height: 0%;
}
}
#container{
width: 200px;
height: 50px;
margin: 200px auto;
}
#container #one{
animation:yuying1 0.6s infinite 0.1s;
-webkit-animation:yuying1 0.6s infinite 0.1s;
}
#container #two{
animation:yuying1 0.6s infinite 0.3s;
-webkit-animation:yuying1 0.6s infinite 0.3s;
}
#container #three{
animation:yuying1 0.6s infinite 0.5s;
-webkit-animation:yuying1 0.6s infinite 0.5s;
}
#container #four{
animation:yuying1 0.6s infinite 0.7s;
-webkit-animation:yuying1 0.6s infinite 0.7s;
}
#container #five{
animation:yuying1 0.6s infinite 0.9s;
-webkit-animation:yuying1 0.6s infinite 0.9s;
}
#container #six{
animation:yuying1 0.6s infinite 1.1s;
-webkit-animation:yuying1 0.6s infinite 1.1s;
}
#container #seven{
animation:yuying1 0.6s infinite 1.3s;
-webkit-animation:yuying1 0.6s infinite 1.3s;
}
.wave{
width:6px;
height: 100%;
margin-left: 10px;
border-radius: 50px;
background-color: #999;
vertical-align: middle;
display: inline-block;
}
</style>
</head>
<body>
<div id="container">
<div id="one" class="wave"></div>
<div id="two" class="wave"></div>
<div id="three" class="wave"></div>
<div id="four" class="wave"></div>
<div id="five" class="wave"></div>
<div id="six" class="wave"></div>
<div id="seven" class="wave"></div>
</div>
</body>
</html>
语音播放动效css
最新推荐文章于 2024-07-15 16:12:47 发布