码迷,mamicode.com
首页 > 其他好文 > 详细

自己写的光圈动画

时间:2017-04-17 09:23:54      阅读:147      评论:0      收藏:0      [点我收藏+]

标签:color   nsf   inf   ado   box   splay   point   tran   relative   

.circle_normal {
    width: 18px;
    height: 18px;
    margin: 0 auto;
    background: #45de3c;
    cursor: pointer;
    display: inline-block;
    position: relative;
    border-radius: 50%;
}

 .circle_normal:after {
    content: ‘‘;
    position: absolute;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    /*border:1px solid rgba(69, 222, 60,0.3);*/
    /*box-shadow: 0 0 1px 1px rgba(69, 222, 60,0.5);*/
    top: 50%;
    left: 50%;
    margin-top: -35px;
    margin-left: -38px;
    z-index: 3;
    opacity: 1;
     -webkit-animation: halo 2s infinite linear;
    -moz-animation: halo 2s infinite linear;
    animation: halo 2s infinite linear; 
} 
 .circle_normal:before {
    content: ‘‘;
    position: absolute;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    /*border:1px solid rgba(69, 222, 60,0.3);*/
    /*box-shadow: 0 0 1px 1px rgba(69, 222, 60,0.5);*/
    top: 50%;
    left: 50%;
    margin-top: -35px;
    margin-left: -38px;
    z-index: 3;
    opacity: 1;
    -webkit-animation: haloo 2s infinite linear;
    -moz-animation: haloo 2s infinite linear;
    animation: haloo 2s infinite linear;
} 
 @-webkit-keyframes halo {
        0% {
            opacity: 0;
            -webkit-transform: scale(0.1,0.1);
        }
        100% {
            opacity: 1;
            box-shadow: 0 0 1px 4px rgba(69, 222, 60,1);
            -webkit-transform: scale(1,1);
        }
    }
    @keyframes halo {
        0% {
            opacity: 0;
            transform: scale(0.1,0.1);
        }
        100% {
            opacity: 1;
            box-shadow: 0 0 1px 4px rgba(69, 222, 60,1);
            transform: scale(1,1);
        }
    }
 @-webkit-keyframes haloo {
        0% {
            opacity: 1;
            box-shadow: 0 0 1px 4px rgba(69, 222, 60,1);
            -webkit-transform: scale(1,1);
        }
        100% {
            opacity: 0;
            box-shadow: 0 0 1px 2px rgba(69, 222, 60,0.2);
            -webkit-transform: scale(1.4,1.4);
        }
    }
    @keyframes haloo {
        0% {
            opacity: 1;
            box-shadow: 0 0 1px 4px rgba(69, 222, 60,1);
            transform: scale(1,1);
        }
        100% {
            opacity: 0;
            box-shadow: 0 0 1px 2px rgba(69, 222, 60,0.2);
            transform: scale(1.4,1.4);
        }
    }

 

自己写的光圈动画

标签:color   nsf   inf   ado   box   splay   point   tran   relative   

原文地址:http://www.cnblogs.com/rage-the-dream/p/6721246.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!