快上网专注成都网站设计 成都网站制作 成都网站建设
成都网站建设公司服务热线:028-86922220

网站建设知识

十年网站开发经验 + 多家企业客户 + 靠谱的建站团队

量身定制 + 运营维护+专业推广+无忧售后,网站问题一站解决

如何在css实现水纹扩散的动画效果

今天就跟大家聊聊有关如何在css实现水纹扩散的动画效果,可能很多人都不太了解,为了让大家更加了解,小编给大家总结了以下内容,希望大家根据这篇文章可以有所收获。

创新互联主要从事成都网站设计、网站建设、外贸网站建设、网页设计、企业做网站、公司建网站等业务。立足成都服务连山,十年网站建设经验,价格优惠、服务专业,欢迎来电咨询建站服务:028-86922220

css:

.main{
    position: relative;
    height:70px;
    width: 310px;
    margin: 0 auto;
    background-color: #f34147;
}
.circle{
    position: relative;
    float: left;
    height:70px;
    width: 70px;


}
/*线*/
.hr{
    position: relative;
    float: left;
    width: 50px;
    height:70px;
    background: url("../images/hr_1.png") no-repeat center center;
    background-size: auto 18px;

}
.hr-x{
    background: url("../images/hr_2.png") no-repeat center center;
    background-size: auto 18px;
}
.hr-r{
    background: url("../images/hr_3.png") no-repeat center center;
    background-size: auto 18px;
}

/*按钮  大:47 小:39*/
.box-icon{
    position: absolute;
    z-index: 9999;
    top:0;
    right:0;
    left:0;;
    bottom: 0;
    width: 70px;
    height: 70px;
}
/*小 不亮*/
.icon-a{
    background: url("../images/icon_a_3.png") no-repeat center center;
    background-size:39px 39px;
}
.icon-b{
    background: url("../images/icon_b_3.png") no-repeat center center;
    background-size:39px 39px;
}
.icon-c{
    background: url("../images/icon_c_3.png") no-repeat center center;
    background-size:39px 39px;
}
/*小 亮*/
.icon-a-1{
    background: url("../images/icon_a_2.png") no-repeat center center;
    background-size:39px 39px;
}
.icon-b-1{
    background: url("../images/icon_b_2.png") no-repeat center center;
    background-size:39px 39px;
}
.icon-c-1{
    background: url("../images/icon_c_2.png") no-repeat center center;
    background-size:39px 39px;
}


/*大 亮*/
.icon-a-2{
    background: url("../images/icon_a_1.png") no-repeat center center;
    background-size:47px 47px;
}
.icon-b-2{
    background: url("../images/icon_b_1.png") no-repeat center center;
    background-size:47px 47px;
}
.icon-c-2{
    background: url("../images/icon_c_1.png") no-repeat center center;
    background-size:47px 47px;
}


/*动效*/
@keyframes warn {
     0% {
        transform: scale(0.6);
        opacity: 0;
    }
    25% {
        transform: scale(0.6);
        opacity: 0.8;
    }
    /*50% {*/
        /*transform: scale(0.8);*/
        /*opacity: 0.4;*/
    /*}*/
    /*75% {*/
        /*transform: scale(0.9);*/
        /*opacity: 0.3;*/
    /*}*/
    100% {
        transform: scale(1);
        opacity: 0.1;
    }
}
@-webkit-keyframes warn {
    0% {
        -webkit-transform: scale(0);
        opacity: 0;
    }
    25% {
        -webkit-transform: scale(0.6);
        opacity: 0.8;
    }
    /*50% {*/
        /*-webkit-transform: scale(0.1);*/
        /*opacity: 0.3;*/
    /*}*/
    /*75% {*/
        /*-webkit-transform: scale(0.5);*/
        /*opacity: 0.5;*/
    /*}*/
    100% {
        -webkit-transform: scale(1);
        opacity: 0.1;
    }
}
/* 70*70的容器*/
.box{
    position: absolute;
    width: 70px;
    height: 70px;
    border: 6px solid rgba(225,225,225,0.5);
    -webkit-border-radius:70px;
    -moz-border-radius: 70px;
    border-radius: 70px;
    z-index: 1;
    opacity: 0;
    -webkit-animation: warn  4s ease-out infinite;
    -moz-animation: warn  4s ease-out infinite;
    animation: warn  4s ease-out infinite;
}
.box-a{
    position: absolute;
    width: 70px;
    height: 70px;
    border: 6px solid rgba(225,225,225,0.5);
    -webkit-border-radius:70px;
    -moz-border-radius: 70px;
    border-radius: 70px;
    z-index: 1;
    opacity: 0;
    -webkit-animation: warn  4s ease-out infinite;
    -moz-animation: warn  4s ease-out infinite;
    animation: warn  4s ease-out infinite;
    animation-delay:1s;
    -webkit-animation-delay:1s; /* Safari 和 Chrome */


}
.box-b{
    position: absolute;
    width: 70px;
    height: 70px;
    border: 6px solid rgba(225,225,225,0.5);
    -webkit-border-radius:70px;
    -moz-border-radius: 70px;
    border-radius: 70px;
    z-index: 1;
    opacity: 0;
    -webkit-animation: warn  4s ease-out infinite;
    -moz-animation: warn  4s ease-out infinite;
    animation: warn  4s ease-out infinite;
    animation-delay:2s;
    -webkit-animation-delay:2s; /* Safari 和 Chrome */

}
.box-c{
    position: absolute;
    width: 70px;
    height: 70px;
    border: 6px solid rgba(225,225,225,0.5);
    -webkit-border-radius:70px;
    -moz-border-radius: 70px;
    border-radius: 70px;
    z-index: 1;
    opacity: 0;
    -webkit-animation: warn  4s ease-out infinite;
    -moz-animation: warn  4s ease-out infinite;
    animation: warn  4s ease-out infinite;
    animation-delay:3s;
    -webkit-animation-delay:3s; /* Safari 和 Chrome */
    
}

看完上述内容,你们对如何在css实现水纹扩散的动画效果有进一步的了解吗?如果还想了解更多知识或者相关内容,请关注创新互联行业资讯频道,感谢大家的支持。


网页名称:如何在css实现水纹扩散的动画效果
URL地址:http://6mz.cn/article/pssgsp.html

其他资讯