Is there any way to implement a callback function in case of css3 animation? In case of Javascript animation its possible but not finding any way to do it in css3.
One way I could see is to execute callback after the animation duration but that doesn't make sure that it will always be called right after the animation ends. It will depend on the browser UI queue. I want a more robust method. Any clue?
An easy way for you to do a callback that also handles your CSS3 transitions/browser compatibilities would be the jQuery Transit Plugin. Example:
JS Fiddle Demo
Yes, there is. The callback is an event, so you must add an event listener to catch it. This is an example with jQuery:
Or pure js:
Live demo: http://jsfiddle.net/W3y7h/