css3 波动效果

作者: admin 日期: 2017-09-15 14:30:00 人气: - 评论: 0
<!doctype html>
<html lang="en">
<head>
   <meta charset="UTF-8">
   <meta name="viewport"
         content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
   <meta http-equiv="X-UA-Compatible" content="ie=edge">
   <title>Document</title>
   <style>
       body{
background: #000;
       }
</style>
</head>
<body>
<style>


   @keyframes load-ico-key
   {
0% {
transform:scale(0.5) ;
           opacity: 0.5;
       }
100% {
transform:scale(1) ;
           opacity: 0;
       }
}

.ani-box{
width: 150px;
       height: 150px;
       position: relative;
   }
.ani-box .circle{
animation: load-ico-key 2.5s;
       animation-iteration-count: infinite;
       width: 100%;
       height: 100%;
       background: #fff;
       left: 0;
       top: 0;
       position: absolute;
       border-radius: 100%;
       transform:scale(0.5);
       opacity: 0.5;
   }

.ani-box .circle:nth-child(1){
animation-delay:0s;
   }
.ani-box .circle:nth-child(2){
animation-delay:0.5s;
   }
.ani-box .circle:nth-child(3){
animation-delay:1s;
   }
.ani-box .circle:nth-child(4){
animation-delay:1.5s;
   }
.ani-box .circle:nth-child(5){
animation-delay:2s;
   }


</style>
<div class="ani-box">
   <div class="circle"></div>
   <div class="circle"></div>
   <div class="circle"></div>
   <div class="circle"></div>
   <div class="circle"></div>
</div>


</body>
</html>


相关内容

发表评论
更多 网友评论0 条评论)
暂无评论

Copyright © 2012-2014 我的代码板 Inc. 保留所有权利。

页面耗时0.0251秒, 内存占用1.83 MB, 访问数据库13次

闽ICP备15009223号-1