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