图片旋转

mac2026-06-06  6

 

<img src="static/img/jin_center/cycle.png" id="cycle" class="not_show" style=" position: absolute; top: 552px; left: 1816px; width: 211px;" /> //中间小球边框动画 var cycle=document.getElementById('cycle'); cycle.I=2; //+-代表左右,大小代表速度(-5,5) cycle._I=cycle.I; setInterval(function () { cycle.style.WebkitTransform='rotate('+cycle.I+'deg)'; cycle.style.MozTransform='rotate('+cycle.I+'deg)'; cycle.style.msTransform='rotate('+cycle.I+'deg)'; cycle.I+=cycle._I; },20);

 

最新回复(0)