By default Jake Query runs multiple enemy calls one after the other.
For this reason we can easily create and perform a sequence of animations.
In this example an element is resized four times using for animate calls
each animate call resize IS THE ELEMENT TO A DIFFERENT WITH or height.
It also changes the opacity to a specified amount.
Let's take a look at the script to see how it works.
We can see below our button click event that we've declared a variable called Square the Variable value
contains the div with I.D. Square
next.
We've assigned an enemy call to the square Div 4 times
each enemy call will run one after the other.
Every time the enemy call runs the divs height or with property is changed in the first instance the
height changes to 500 pixels opacity to zero point five.
The numerical value in red is the speed at which this animation plays out.
And moving down the list we can see that the width opacity and speed properties continue to change
so again this is known as queue functionality and it allows us to play a sequence of animations one
after the other.