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