Constructs an instance of AnimationSequence, given a frame provider, an HTML element, and some optional keyframes.
The AnimationProvider responsible for interpolating between keyframes.
The HTML element that the animation is to run on.
An initial set of 0 or more animation frames to populate the animation with.
A callback to invoke after every frame has completed.
Applies the current frame in the sequence to the element being animated.
Completes the animation, resolving the animation's completion promise.
Whether or not to indicate that the animation was actually completed, rather than stopped.
Called after each keyframe has been fully applied.
Starts the animation sequences and begins progressing through the animation's states and applying keyframes.
Moves the animation forward, either to the next keyframe or to the completed state if all keyframes are complete.
Adds a keyframe to the sequence. The keyframe may represent a pre-defined CSS class, or an object block containing animatable property values. Keyframes may be added to animations that are in progress. However, if the animation has completed, it must be restarted.
The keyframe to add to the animation.
Begins playing the animation, returning a Promise-like object that will be resolved once the animation is complete.
An optional callback to invoke after every frame has been applied and immediately before _onFrameEnd
is called.
Returns whether or not this animation resets. An animation that resets should cause the animated element to go back to its original state when complete.
Sets whether or not the animation resets to its original state.
Whether or not the animation should reset.
Stops playing the animation by preventing subsequent keyframes from being applied. Note that this will not prevent the visual state of the animation from progressing between keyframes. In other words, an animation stopped will continue to animate until the visual state of current keyframe has been reached.
Gets the currently activate animation for a given element, if there is one.
The element to return the active animation for.
Removes the activate animation for a given element, if it exists.
The element to remove the animation for.
Represents an animation, defined as a simple sequence of AnimationKeyframe objects. AnimationSequence itself does no actual animation, it's simply an abstract represention of an animation for which the actual mechanism of the visual representation is decoupled. See AnimationProvider.