CSS Animation Callbacks

2.5s Animation
Child
2.5s Delayed Animation
No animation

An element will fire the animationstart and animationstartend events when CSS animations are declared. This lets you fire a javascript function when:

  1. All animations are finished, including the animations of children
  2. An animation is delayed
  3. No animations are declared, and there is no need to wait