breezing-effect

18.09.20201 Min Read — In CSS Tricks
<style>
  @keyframes breeze {
    0% {
      transform: scale(1);
      opacity: 1;
    }

    100% {
      opacity: 0.2;
      transform: scale(2);
    }
  }

  .main {
    position: absolute;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background-color: blue;
    border: 1px darkblue solid;
  }

  .animated {
    animation: breeze 2s infinite;
  }
</style>

<div class="main"></div>
<div class="main animated"></div>
<div class="main animated" style="animation-delay: 0.4s"></div>
<div class="main animated" style="animation-delay: 0.8s"></div>
<div class="main animated" style="animation-delay: 1.2s"></div>
<div class="main animated" style="animation-delay: 1.6s"></div>
你必须登录才能发表评论