This example uses the addEventListener() method to attach an "animationstart", "animationiteration" and "animationend" event to a DIV element.

Click me to start the animation.