我试图弄清楚 .stop() 和 clearQueue() 是如何工作的。这是我在 jsfiddle 中的示例代码:http: //jsfiddle.net/PsTQv/1/如果将鼠标悬停 在几个块上,您将看到动画正在排队。为了解决这个问题,我尝试使用 stop() 和 clearQueue.Simple add stop after hide() 或 show() 或两者都不起作用。行为如下:
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之间的区别来解释上面的行为。另外我想弄清楚在这个例子中如何实现不排队的动画,即悬停在块上并且文本显示在幻灯片效果中.
谢谢