jquery Source Analysis---Movement animate team out

Source: Internet
Author: User

We all know that the so-called movement is the operation of the timer, but if I also write 3 movements, such as the following, how will the effect?

<!DOCTYPE HTML><HTMLLang= "en"><Head>    <MetaCharSet= "UTF-8">    <title>Document</title>    <style>#div1{width:300px;Height:300px;background:Red;position:Absolute; }    </style></Head><Body><DivID= "Div1"></Div><Scriptsrc= "Jquery-2.0.3.js"></Script><Script>$('#div1'). Animate ({width: -}, 5xx );$('#div1'). Animate ({height: -}, 5xx );$('#div1'). Animate ({opacity:0.1}, 5xx );</Script></Body></HTML>

The operation is not executed asynchronously, but in accordance with the order of execution, which involves a word, called the queue out of the team

In the source line 8497, you can see that jquery is using the queue method operation queues, the approximate meaning of similar to the array of push,pop and so on

After the operation is complete, jquery automatically completes the team, which is dequeue

jquery Source Analysis---Movement animate team out

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.