本文介绍了在同一元素上并行执行多个jQuery效果的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我看到这个问题被问了很多遍,但是没有一个解决方案对我有用.我有两个要并行执行的效果.
I see that this question was asked many times, but none of the solutions worked for me.I have two effects that I want to execute in parallel.
我希望盒子同时渐入渐出并弹跳: http://jsfiddle.net/6VVUG/
I want the box to fade-in and bounce simultaneously:http://jsfiddle.net/6VVUG/
推荐答案
束缚UI效果,并使用dequeue()
一次执行所有效果.
Chain the UI effects, and use dequeue()
to execute them all at once.
$("#t").hide().show("fade", {}, {duration:1200}).effect("bounce", { times:3 }, { duration:400}).dequeue();
这篇关于在同一元素上并行执行多个jQuery效果的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!