一、代码展示

  <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>
二、效果展示
 
posted on 2021-04-13 23:13  菜菜小江升级打怪之路  阅读(2204)  评论(0)    收藏  举报