CSS之光晕效果



css_practice.jade
doctype html
    html
        head
            title CSS之光晕效果
            meta(http-equiv="Content-Type",content="text/html;charset=utf-8")
            link(rel='stylesheet', href='/stylesheets/css_basecss.css')
        body
           div#c1
               div.circle
css_basecss.css
body{
    background:black;
}
#c1{
    position:relative;
    width:100%;
    height:200px;
    background:#333;
}
.circle{
    width:20px;
    height:20px;
    border-radius:50%;
    cursor:pointer;
    position:relative;
    top:50%;
    left:50%;
    -webkit-transition:all 0.2s;
    -moz-transition:all 0.2s;
}
.circle:nth-child(1){
    background:#33ffbb;
    -webkit-animation:r0 2s 0s ease-out infinite;
    -moz-animation: r0 2s 0s ease-out infinite;
}

@keyframes r0 {
    0% {
        box-shadow: 0 0 8px 6px rgba(26, 255, 179, 0), 0 0 0px 0px #333, 0 0 0px 0px rgba(26, 255, 179, 0);
    }
    10% {
        box-shadow: 0 0 8px 6px #1affb3, 0 0 12px 10px #333, 0 0 12px 14px #1affb3;
    }
    100% {
        box-shadow: 0 0 8px 6px rgba(26, 255, 179, 0), 0 0 0px 40px #333, 0 0 0px 40px rgba(26, 255, 179, 0);
    }
}    
很惭愧<br><br>只做了一点微小的工作<br>谢谢大家