1.26.2.1
Gameface
MorphAnimation Interface Reference

The Animation object for dom element morphing SVG. More...

Public Member Functions

void play ()
 Starts playing the animation if paused, does nothing if already running. More...
 
void pause ()
 Pauses the animation if running, does nothing if finished/paused. More...
 
void reverse ()
 Reverses the animations playbackRate and plays it. More...
 
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. More...
 

Public Attributes

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

Detailed Description

The Animation object for dom element morphing SVG.

Member Function Documentation

◆ pause()

void MorphAnimation::pause ( )

Pauses the animation if running, does nothing if finished/paused.

◆ play()

void MorphAnimation::play ( )

Starts playing the animation if paused, does nothing if already running.

◆ playFromTo()

void MorphAnimation::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.

◆ reverse()

void MorphAnimation::reverse ( )

Reverses the animations playbackRate and plays it.

Member Data Documentation

◆ currentTime

attribute double MorphAnimation::currentTime

The current time of the animation.

◆ finish

attribute EventSetter MorphAnimation::finish

◆ playbackRate

attribute double MorphAnimation::playbackRate

The playback rate of the animation.