This page is In Progress

Notice: The WebPlatform project, supported by various stewards between 2012 and 2015, has been discontinued. This site is now available on github.

AnimationPlayer

Summary

Represents a single animation player. Players connect animation node, or source, to a timeline and provides playback controls.

Properties

currentTime
The current time of this player unless this player has a pending pause task, in which case this attribute returns null.
finished
Returns the current finished promise for this object.
playState
The play state of this player.
playbackRate
The playback rate of this player. Setting this attribute follows the procedure to update the player playback rate of this object to the new value.
ready
Returns the current ready promise for this object.
source
The source content associated with this player. Setting this attribute updates the object’s source content using the procedure to set the source content of a player.
startTime
Returns the start time of this player. Setting this attribute updates the player start time using the procedure to update the player start time of this object to the new value.
timeline
The timeline associated with this player. Setting this attribute updates the object’s timeline using the procedure to set the timeline of a player.

Methods

cancel
Clears all effects caused by this player and aborts its playback by running the cancel a player procedure for this object.
constructor
Constructs an new AnimationPlayer object.
finish
Seeks the player to the end of the source content in the current direction by running the finish a player procedure for this object.
pause
Suspends the playback of this player by running the procedure to pause a player for this object.
play
Unpauses the player and rewinds if it has finished playing using the procedure to play a player for this object.
reverse
Inverts the playback rate of this player and seeks to the start of the source content if if has finished playing in the reversed direction using the reverse a player procedure for this object.

Events

No events.