Callback

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 animate
Click 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 :-

Member Login

Member Login




Not a Member? Sign Up!




Login to comment

Be the first to comment on this topic







  


<<< Wanna review

Continue >>>