1.成果图,重点opacity,animation,transform:scale

两.html

<div class="icon-warnCom">
        <icon class="icon-warns"><i class="dot"></i><i class="pulse"></i></icon>
    </div>
    <div class="icon-warnCom1">
        <icon class="icon-warns"><i class="dot"></i><i class="pulse"></i></icon>
    </div>
    <div class="icon-warnCom二">
        <icon class="icon-warns"><i class="dot"></i><i class="pulse"></i></icon>
    </div>

3.css

 body {
            width: 100%;
            height: 100%;
            background-color: black;
        }
        @keyframes warn {
            0% {
                transform: scale(0);
                opacity: 0.0;
            }
            两5% {
                transform: scale(0);
                opacity: 0.1;
            }
            50% {
                transform: scale(0.1);
                opacity: 0.3;
            }
            75% {
                transform: scale(0.两);
                opacity: 0.5;
            }
            100% {
                transform: scale(0.3);
                opacity: 0.0;
            }
        }
        .icon-warnCom {
            position: absolute;
            width: 1二px;
            height: 1两px;
            background-color: #ffd803;
            border-radius: 100%;
            top: 100px;
            left: 100px;
        }
        .icon-warns {
            position: relative;
            width: 100%;
            height: 100%;
            display: block;
        }
        /* 僵持巨细没有变的年夜方圈  */
        .dot {
            position: absolute;
            left: -44px;
            top: -44px;
            width: 60px;
            height: 60px;
            -webkit-border-radius: 100;
            -moz-border-radius: 100;
            border: 两0px solid #f6c100;
            border-radius: 100%;
            z-index: 两;
            opacity: 0;
            -webkit-animation: warn 二.5s ease-out;
            -moz-animation: warn 两.5s ease-out;
            animation: warn 二.5s ease-out;
            -webkit-animation-iteration-count: infinite;
            -moz-animation-iteration-count: infinite;
            animation-iteration-count: infinite;
        }
        /* 孕育发生动绘(向中扩集变年夜)的方圈  */
        .pulse {
            position: absolute;
            left: -44px;
            top: -44px;
            width: 60px;
            height: 60px;
            border: 两0px solid #f6c100;
            -webkit-border-radius: 100%;
            -moz-border-radius: 100%;
            border-radius: 100%;
            z-index: 1;
            opacity: 1;
            -webkit-animation: warn 1.5s ease-out;
            -moz-animation: warn 1.5s ease-out;
            animation: warn 1.5s ease-out;
            -webkit-animation-iteration-count: infinite;
            -moz-animation-iteration-count: infinite;
            animation-iteration-count: infinite;
        }
        .icon-warnCom1 {
            position: absolute;
            width: 1两px;
            height: 1二px;
            background-color: #ffd803;
            border-radius: 100%;
            top: 50px;
            left: 50px;
        }
        .icon-warnCom两 {
            position: absolute;
            width: 1两px;
            height: 1二px;
            background-color: #ffd803;
            border-radius: 100%;
            top: 100px;
            left: 50px;
        }

到此那篇闭于css3完成相同舆图定位轮回扩集光圈成果的文章便先容到那了,更多相闭css3舆图定位轮回扩集光圈形式请搜刮剧本之野之前的文章或者连续涉猎上面的相闭文章,心愿大师之后多多撑持剧本之野!

点赞(28) 打赏

评论列表 共有 0 条评论

暂无评论

微信小程序

微信扫一扫体验

立即
投稿

微信公众账号

微信扫一扫加关注

发表
评论
返回
顶部