By creating an animation queue in jQuery that contains several DOM elements and animations and runs them sequentially?

Possible duplicate:
Not a nested animation sequence in jQuery?

I have an html / css / js iOS app that currently has several animations that run simultaneously at the same time. Not only is this not a desired affect, there are too many for some iOS devices to process everything at once and lead to intermittent animations.

What I want to do is instead of .animate () everything, I would like to add animations to the queue and then run them sequentially. The challenge here is that the animation spreads throughout the application.

I'm having trouble tracking how to do this with .queue () - or something else for that matter ...

+5
source share
1 answer

This jQuery example may help some in this problem - when multiple animations are created on the same element. This example uses the queue to organize animations immediately or sequentially:

http://api.jquery.com/animate/#example-2

also pay attention to the MLM comment above for animating queues for several items:

Not a nested animation sequence in jQuery?

+1
source

All Articles