CSS图片旋转-实现加载中动画效果

时间:2021-04-14 12:20:55   收藏:0   阅读:0

一、代码展示

  <template>

    ...

    <div class="loading-animation-box" >
      <img class="loading-animation" width="26" height="28" src="../../../static/images/balabla.png" />
    </div>
             ...
      </templeate>
 
  <style>
    .loading-animation-box{
      margin: 0;
      padding: 0;
      .loading-animation{
        animation:loading 0.75s linear infinite forwards;
     }
    @keyframes loading{
      0%{
        transform:rotate(0deg)
      }
        100%{
          transform:rotate(360deg)
        }
      }
    }
      </style>
二、效果展示
技术图片
 
评论(0
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!