Constructor
Readonly
managerAnimation manager
Static
STATESAnimation State Enum
Animation has finished playing (uninterrupted from from start to finish)
Animation has never been played
Animation is paused
Entered by a call to Animation.pause while the animation is PLAYING.
Animation is currently playing
Entered by a call to Animation.play
Animation has finished its stop animation (if there was one)
Animation is currently executing its stop animation
Gets the amount of delay left (in seconds) before the animation starts
Gets the Element that is being animated
Gets the current frame number of the animation expressed in 60fps
Gets the current progress point
Gets the settings for this animation
Gets the current state of the animation
See Animation.STATES for a description of each state
Synchronously calls each of the listeners registered for the event named name
,
in the order they were registered, passing the supplied arguments to each.
Returns ‘true’ if the current state is Animation.STATES.FINISHED
Returns ‘true’ if the current state is Animation.STATES.PAUSED
Returns ‘true’ if the current state is Animation.STATES.PLAYING
Returns ‘true’ if the current state is Animation.STATES.STOPPING
Adds a one-time listener function for the event named name
. The next time name
is triggered, this listener is removed and then invoked.
If playing, then stop at the current position (can be resumed by calling play)
Same as play, but if currently finished, then restart.
If currently waiting for the stopDelay, skip it and continue
Stop the animation (effect depends on the stopMethod and properties)
Stop the animation immediately (as if the stopMethod ‘immediate’ was set)
Static
add
Represents an Animation of an Element
Remarks
Animations can be created by calling Element.animation on any Element.
See Animations for more information.