Although it is true that consecutive animation calls will give an appearance, they work at the same time, the basic truth is that they are different animations that work very close to parallel.
To ensure that the animation does work at the same time, use:
$(function() { $('selector1').animate({..., queue: 'selector-animation'}); $('selector2').animate({..., queue: 'selector-animation'}).dequeue('selector-animation'); });
Further animations can be added to the selector-animation queue, and all of them can be triggered if the last animation cancels them.
Cheers, Anthony
Borgboy
source share