語音播放動效css

<!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>
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章