1. Preface
When an animation method is called on a jquery object, if the object is performing an animated effect, the newly called animation method is added to the animation queue, and jquery executes each animation of the animation queue sequentially.
jquery provides several ways to manipulate the animation queue.
1) Stop ([Clearquery],[gotoend]): Stops the animation that is being performed on each DOM element in the current jquery object.
2) Queue ([Queuename,]callback): Adds the callback animation number to the tail of the animation function queue for all DOM elements in the current jquery object.
3) Queue ([Queuename,]naequeue): Use the Newqueue animation function queue instead of the animation function queue for the DOM element in the current jquery object.
4) Dequeue (): Executes the first animation function of the Animation function queue header and moves the animation function out of the queue.
5) Clearqueue ([QueueName]): Empties all animation functions in the animation function queue.
2. Example
The following program code demonstrates the properties of accessing the default animation queue:
<! DOCTYPE Html>3. Implementation results
jquery Action Animation queue