CSS3 - Javascript event-handlers for CSS3 Animation
Although CSS3 animations often offer the best solution for rich visual effects nowadays, CSS wasn't built to provide event handlers based on events such as animation start, stop , and frame iteration. For this of course we need JavaScript.
Luckily CSS animated elements expose events that can be detected with JavaScript and acted upon appropriately. This Sitepoint article offers some insights and a demo:
Luckily CSS animated elements expose events that can be detected with JavaScript and acted upon appropriately. This Sitepoint article offers some insights and a demo:
http://www.sitepoint.com/css3-animation-javascript-event-handlers