小編給大家分享一下css3如何實現(xiàn)wifi信號逐漸增強效果,希望大家閱讀完這篇文章之后都有所收獲,下面讓我們一起去探討吧!

效果圖

下面是實現(xiàn)代碼:
<!DOCTYPE html>
<meta charset="utf-8">
<html>
<head>
<title>wifi信號</title>
<style type="text/css">
*{
margin: 0;
padding: 0;
}
.box {
width: 240px;
height: 240px;
box-sizing: border-box;
position: relative;
margin: 100px auto;
}
.wifi-symbol {
width: 200px;
height: 200px;
margin-left: 18px;
box-sizing: border-box;
overflow: hidden;
transform: rotate(45deg);
}
.wifi-circle {
border: 10px solid #ccc;
border-radius: 50%;
position: absolute;
}
.first {
width: 260px;
height: 260px;
top: 0;
left: 0;
animation: run1 4s linear infinite;
}
@keyframes run1 {
0% {
border-color: #ccc;
}
25% {
border-color: #ccc;
}
50% {
border-color: #ccc;
}
75% {
border-color: #ccc;
}
100% {
border-color: #97a8e6;
}
}
.second {
width: 200px;
height: 200px;
top: 60px;
left: 60px;
animation: run2 4s linear infinite;
}
@keyframes run2 {
0% {
border-color: #ccc;
}
25% {
border-color: #ccc;
}
50% {
border-color: #ccc;
}
75% {
border-color: #97a8e6;
}
100% {
border-color: #ccc;
}
}
.third {
width: 140px;
height: 140px;
top: 120px;
left: 120px;
animation: run3 4s linear infinite;
}
@keyframes run3 {
0% {
border-color: #ccc;
}
25% {
border-color: #ccc;
}
50% {
border-color: #97a8e6;
}
75% {
border-color: #ccc;
}
100% {
border-color: #ccc;
}
}
.fourth {
width: 20px;
height: 20px;
background: #ccc;
top: 180px;
left: 180px;
animation: run4 4s linear infinite;
}
@keyframes run4 {
0% {
background: #ccc;
border-color: #ccc;
}
25% {
background: #97a8e6;
border-color: #97a8e6;
}
50% {
background: #ccc;
border-color: #ccc;
}
75% {
background: #ccc;
border-color: #ccc;
}
100% {
background: #ccc;
border-color: #ccc;
}
}
</style>
</head>
<body>
<div class="box">
<div class="wifi-symbol">
<div class="wifi-circle first"></div>
<div class="wifi-circle second"></div>
<div class="wifi-circle third"></div>
<div class="wifi-circle fourth">
</div>
</div>
</body>
</html>看完了這篇文章,相信你對“css3如何實現(xiàn)wifi信號逐漸增強效果”有了一定的了解,如果想了解更多相關(guān)知識,歡迎關(guān)注創(chuàng)新互聯(lián)行業(yè)資訊頻道,感謝各位的閱讀!
新聞標(biāo)題:css3如何實現(xiàn)wifi信號逐漸增強效果-創(chuàng)新互聯(lián)
本文URL:http://www.chinadenli.net/article44/djhhhe.html
成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供網(wǎng)站內(nèi)鏈、標(biāo)簽優(yōu)化、定制開發(fā)、移動網(wǎng)站建設(shè)、小程序開發(fā)、ChatGPT
聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請盡快告知,我們將會在第一時間刪除。文章觀點不代表本網(wǎng)站立場,如需處理請聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時需注明來源: 創(chuàng)新互聯(lián)
猜你還喜歡下面的內(nèi)容