我对 jQuery.animate
无限循环中断方法的解决方案感兴趣。
$(element).mouseover(function() {
$(this).animate({ opacity: 1 }, duration, customFunc);
}).mouseout(function() {
});
现在的问题是如何打破这个循环?例如在一个mouseout
事件中?
我可以很容易地做到这一点setInterval
,clearInterval
但是有没有办法用.animate
功能做到这一点?