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