好吧,我从我的代码此示例:.animate()停止了几次工作后?
this.el.show().css({ "width" : 0 });
this.el.find('.mosaic-content-wrap').css({ "margin-left" : -this.width });
this.el.animate({ "width" : this.width }, duration);
this.el.find('.mosaic-content-wrap').animate({ "margin-left" : 0 }, duration);
所有对象都很好,我试图记录所有的人(包括:this.el,this.width,this.el.find(”马赛克())
但是,.css()函数正在运行,而.animate()只是在几次后停止,我需要强调的是 - 它会运行几次,然后停止工作。
任何人都可以想到的任何理由.animate()将无法正常工作?我可以进行一些测试或有事找出来有什么不对?我想不出别的比检查“this.el”是否存在,它确实指向正确的元素。
完整的例子可以在这里看到: http://www.nikolaydyankov.com/Dev/mosaic 尝试玩转换为了制动它。在休息之前不应超过2-3次。
您所连结的例子是没有任何问题的工作。我使用Firefox 9.0.1。 – lumbric 2011-12-26 18:16:55
对不起,错了评论。当我写评论时,照片消失了。 – lumbric 2011-12-26 18:28:34