【发布时间】:2013-02-27 01:12:15
【问题描述】:
我如何检测scrollTo 插件当前正在滚动?比如 jQuery :animated 选择器。
if ( $('.ele').is(':animated') ) {
$('.ele').animate({'left':'1000px'},5000);
// .ele will only animate while it is not animating
// i prevent repeat animation
}
【问题讨论】: