【发布时间】:2012-07-27 15:30:28
【问题描述】:
我正在尝试使用 jQueryRotate 插件在鼠标悬停的当前位置停止旋转轮,并在鼠标移出时继续动画旋转,
我似乎无法使其与适用于我的自定义动画的 stop 方法一起工作
纺车的代码在jsfiddle上
var angle = 0;
setInterval(function(){
angle+=3;
$("#carwheel").rotate(angle,{ easing:'easeInOutElastic'});
$("#carwheel")
.mouseover(function () { $(this).stop(); })
.mouseout(function () { $(this).resume(); })
},100);
【问题讨论】:
标签: jquery animation rotation mouseover mouseout