css实现圆圈波动

2021-02-02 20:13

阅读:666

标签:spl   leo   top   pos   mat   ini   width   pre   block   

div class="circle" style="display: inline-block;position: relative;">
    div class="wave0 wave">div>
    div class="wave1 wave">div>
    div class="wave2 wave">div>
    div class="wave3 wave">div>
    div class="wave4 wave">div> 
div>
.circle{
        position: relative;
    /* margin: 0 auto; */
/*    left: 40%;
    bottom: 20px;*/
}
.wave{
    position:absolute;
    border-radius: 100%;
    top:calc((100% - 50px)/2);
    left:calc((100% - 50px)/2);
     width: 50px;
    height: 50px;
}
.wave0{
   background:#ffffff;
    border:1px solid black;
    z-index: 2
    -webkit-animation: sk-scaleout 2s infinite ease-in-out;
    animation: sk-scaleout 2s infinite ease-in-out;
    animation-delay:2s;
}
.wave1{
  background:#aeaeae;
  border:1px solid black;
  z-index:3;
  -webkit-animation: sk-scaleout 2s infinite ease-in-out;
  animation: sk-scaleout 2s infinite ease-in-out;
  animation-delay:2s;
}
.wave2{
  background:#ffffff;
  border:1px solid black;
  z-index:4;
  -webkit-animation: sk-scaleout 4s infinite ease-in-out;
    animation: sk-scaleout 4s infinite ease-in-out;
    animation-delay:2s;
}
.wave3{
  background:#4d4d4d;
  border:1px solid black;
  z-index:5;
  -webkit-animation: sk-scaleout 6s infinite ease-in-out;
    animation: sk-scaleout 6s infinite ease-in-out;
    animation-delay:2s;
}
.wave4{
  background:#3c3c3c;
  border:1px solid black;
  z-index:6;
  -webkit-animation: sk-scaleout 8s infinite ease-in-out;
    animation: sk-scaleout 8s infinite ease-in-out;
    animation-delay:2s;
}

 

css实现圆圈波动

标签:spl   leo   top   pos   mat   ini   width   pre   block   

原文地址:https://www.cnblogs.com/Esther-yan/p/13167628.html


评论


亲,登录后才可以留言!