我想弄明白.stop()和clearQueue()是如何工作的。 這裏是我在jsfiddle中的示例代碼:http://jsfiddle.net/PsTQv/1/ 如果在幾個塊上滾動,您將看到動畫正在排隊。 要解決這個問題,我試圖用停止()和clearQueue.Simple隱藏()或顯示(後添加停止)或兩者不會work.The的行爲,如:沒有排隊的jQuery動畫
1. .stop().hide() : text disappears at last;
2. .stop.show(): text is alway there, won't be hidden any more
3. add both: Same as only add to show()
4. add .clearQueue().stop() in the beginning: text disappears at last, like .stop().hide()
我想了解clearQueue和stop之間有什麼區別來解釋上面的行爲。另外我想知道如何在這個例子中沒有排隊的情況下實現動畫,也就是說,將鼠標懸停在塊上,文本顯示在幻燈片效果中。
感謝
嘗試停止(true,true)或閱讀文檔:) – mika 2013-02-09 06:16:18