温馨提示×

温馨提示×

您好,登录后才能下订单哦!

密码登录×
登录注册×
其他方式登录
点击 登录注册 即表示同意《亿速云用户服务条款》

css3如何实现wifi信号逐渐增强效果

发布时间:2021-06-18 15:04:25 阅读:173 作者:小新 栏目:web开发
前端开发者测试专用服务器限时活动,0元免费领,库存有限,领完即止! 点击查看>>

小编给大家分享一下css3如何实现wifi信号逐渐增强效果,希望大家阅读完这篇文章之后都有所收获,下面让我们一起去探讨吧!

效果图

css3如何实现wifi信号逐渐增强效果

下面是实现代码:

<!DOCTYPE html>
<meta charset="utf-8">
<html>
<head>
    <title>wifi信号</title>
    <style type="text/css">
        *{
            margin0;
            padding0;
        }
        .box {
            width240px;
            height240px;
            box-sizing: border-box;
            position: relative;
            margin100px auto;
        }
        .wifi-symbol {
            width200px;
            height200px;
            margin-left18px;
            box-sizing: border-box;
            overflow: hidden;
            transformrotate(45deg);

        }
        .wifi-circle {
            border10px solid #ccc;
            border-radius50%;
            position: absolute;
        }
        .first {
            width260px;
            height260px;
            top0;
            left0;
            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 {
            width200px;
            height200px;
            top60px;
            left60px;
            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 {
            width140px;
            height140px;
            top120px;
            left120px;
            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 {
            width20px;
            height20px;
            background#ccc;
            top180px;
            left180px;
            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如何实现wifi信号逐渐增强效果”有了一定的了解,如果想了解更多相关知识,欢迎关注亿速云行业资讯频道,感谢各位的阅读!

亿速云「云服务器」,即开即用、新一代英特尔至强铂金CPU、三副本存储NVMe SSD云盘,价格低至29元/月。点击查看>>

向AI问一下细节

免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。

原文链接:https://www.jb51.net/css/570505.html

AI

开发者交流群×