It is a function which is called once the ongoing animation comes to an end.We will explain it with an example. Suppose, I wish the user to give an option of replay once the animation is called, then i need to do it through the callback, which is triggered once the animation is complete.
I will animateClick me
The code above asks the user about replay option everytime the animation completes. We can then accordingly take action by restoring the element to the previous state instantaneously as discussed in last chapter and restart the animation, if the user clicks YES.
Lets see some HTML manipulation now :-