<div class="loading"> <img class="loadingImg" src="./img/about/loading.png" alt=""> </div>
@-webkit-keyframes rotation{ from {-webkit-transform: rotate(0deg);} to {-webkit-transform: rotate(360deg);} } .loadingImg{ -webkit-transform: rotate(360deg); animation: rotation 1s linear infinite; -moz-animation: rotation 1s linear infinite; -webkit-animation: rotation 1s linear infinite; }
这样就实现图片一直转起来了,控制时间来控制转的速度
标签:1s,loading,linear,transform,如何,animation,webkit,rotation,图片 From: https://www.cnblogs.com/alannero/p/17577603.html