我需要修改此插件以旋转图像,而无需等待动画结束.如果您访问该链接,您可能会注意到动画在上一个动画结束时重新开始,但我想要图像背靠背,所以我不想等待第一个动画的结束开始下一个动画.知道如何做到这一点.该插件的相关代码段是
el.animate({ left:"-" + el.width() + "px" }, time, "linear", function() {
// reset container position
$(this).css({ left:$("div#imageScroller").width(), right:"" });
// restart animation.
// Problem is to restart it when last image completely appears with out pausing current animation.
animator($(this), duration, "rtl"); //hide controls if visible
($("div#controls").length > 0) ? $("div#controls").slideUp("slow").remove() : null ;
});
Run Code Online (Sandbox Code Playgroud)
另一个用户添加了同样的问题.我正在重新发布问题,看看我是否可以获得有关如何执行此操作的代码段.这非常紧急.
链接 - http://nettuts.s3.amazonaws.com/300_jquery/image%20Scroller/imageScroller.html
jquery ×1