How to queue an animation and return immediately?
Classical syntax:
1
$('.some').animate(attributes,options);
If the jQuery token $ is used as last parameter for animate() then it turns into the timed version.
Similar patterns with animations
- How to
wait for the elements' animation queues to get empty?$('.some').wait().doSome().jQueryStuff();
- How to
wait for the end of the elements' current animations?$('.some').join().doSome().jQueryStuff();
- How to
wait for the end of the elements' current animations for a given queue name?$('.some').join(queue).doSome().jQueryStuff();
- How to
wait for the elements' animation queues to get empty with .join()?$('.some').join(true).doSome().jQueryStuff();
- How to
wait for the elements' animation queues for a given queue name to get empty?$('.some').join(queue,true).doSome().jQueryStuff();
- How to
queue an animation for a single element and wait until it finished?$('#single').animate(attributes,options,$).jQueryStuff();
- How to
queue an animation for multiple elements and wait until they finished?$('.many').animate(attributes,options,$).jQueryStuff();