1.先瞧瞧效果:
2.代碼是這樣的:
<img src="images/circle.png" alt="" id="circle"/>@mixin ani-btnRotate{ @keyframes btnRotate{ from{transform: rotateZ(0);} to{transform: rotateZ(360deg);} }}@include ani-btnRotate;#circle{ position: absolute; left: 50%; width: REM(338); height: REM(338); margin-top: REM(200); margin-left: REM(-338/2); transform-origin: center center ; animation: btnRotate 1s 1s linear forwards; }
用到的圖片是這個(gè):(就是白色轉(zhuǎn)動(dòng)的那個(gè)圖片)
總結(jié)
以上所述是小編給大家介紹的html5實(shí)現(xiàn)圖片轉(zhuǎn)圈的動(dòng)畫效果——讓頁面動(dòng)起來,希望對大家有所幫助,如果大家有任何疑問請給我留言,小編會(huì)及時(shí)回復(fù)大家的。在此也非常感謝大家對武林網(wǎng)網(wǎng)站的支持!
|
新聞熱點(diǎn)
疑難解答
圖片精選