强制停止特定div的动画

时间:2013-09-24 09:10:38

标签: jquery

我正在使用滚动图像的plugin for image scroll,但这次我必须取消该插件所应用的任何动画。所以我尝试了这个

$('#banner-footer').find('*').stop(true, true);

但也不行。有什么想法吗?

正在制作

element.style {
    left: -79px;
    position: absolute;
    top: 0;
    white-space: nowrap;
}

1 个答案:

答案 0 :(得分:0)

这是否有效:

$('#banner-footer').find('*').each(function(){
  $(this).stop(true, true);
});

我不确定你是否可以在一个元素数组上调用.stop()。

相关问题