Creates a new animation using the default AnimationFactory.
The element to apply the animation on.
The animation keyframes to apply. Can be an array of CSS class names to apply, or an array of AnimationKeyframe.
An optional callback to execute after every frame.
Returns the default AnimationFactory, which will use the default AnimationProvider associated with it.
Creates a new animation using the default AnimationFactory and plays it.
The element to apply the animation on.
The animation keyframes to play. Can be an array of CSS class names to apply, or an array of AnimationKeyframe.
An optional callback to execute after every frame.
Schedules an action to be done on an animation frame. As a general rule, any work that touches the DOM (write or read) should be deferred using this mechanism (if possible).
The delegated action.
The maximum number of delegated animation operations that the system will attempt to perform in a single animation frame.