最新回答 / loserwang
? 可以都使用animation// 開始? ? $("button:first").click(function() {? ? ? ? $boy.removeClass('pauseWalk')//**有對應(yīng)的stop方法**? ? ? ? $boy.addClass('slowWalk').animate({? ? ? ? ? ? 'left': $("#content").width() + 'px',? ? ? ? }, 10000);? ? });? ? // 暫停? ? $("button:l...
2017-02-07
最贊回答 / JohnDoe4290627
為什么多次開始與暫停后,最后會發(fā)現(xiàn)小男孩在目標(biāo)位置之前就停止動畫消失不見了呢,是不是因為多次暫停導(dǎo)致總時間10s發(fā)生了誤差減???
2017-02-03