jquery Action Animation queue

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.