In this tutorial, we will discuss about the queue, dequeue & clearQueue effects of jQuery. Given below the functionality of the queue, dequeue & clearQueue effects :
queue : This function contains queue of functions to be executed when the element match.
dequeue : When this function is called , the next element in the queue executes.
clearQueue : When this method is called, all functions on the queue that have not been yet executed are removed from the queue.
queueEffect.html
<!DOCTYPE html> |
OUTPUT
When we click on 'start' button , the animation starts :

When we click on 'stop' button ,the animation stops :
