playState
Summary
The play state of this player.
Property of apis/web_animations/AnimationPlayerapis/web_animations/AnimationPlayer
Syntax
Note: This property is read-only.
var currentState = myPlayer.playState;
Return Value
Returns an object of type enumenum
Returns a value from the AnimationPlayState enumeration.
enum AnimationPlayState { "idle", "pending", "running", "paused", “finished” }; idle Corresponds to the idle play state. pending Corresponds to the pending play state. running Corresponds to the running play state. paused Corresponds to the paused play state. finished Corresponds to the finished play state. 5.4