1.14.0.5
Hummingbird
A modern user interface library for games
Animation Interface Reference

The Animation object for dom element. More...

Public Member Functions

void play ()
 Starts playing the animation if paused, does nothing if already running.
 
void pause ()
 Pauses the animation if running, does nothing if finished/paused.
 
void reverse ()
 Reverses the animations playbackRate and plays it.
 
void playFromTo (double playTime, double pauseTime, optional AnyCallback callback)
 Plays an animation from the selected time to the pause time. When the pauseTime is reached, the animation is automatically paused and the callback is invoked.
 

Public Attributes

attribute double currentTime
 The current time of the animation.
 
attribute double playbackRate
 The playback rate of the animation.
 

Detailed Description

The Animation object for dom element.