VUE-CSS圖片旋轉-實現加載中動畫效果


一、代碼展示

  <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>
二、效果展示
 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM