Animation

Type class

Animation object.

Click here for more info

Sources

This information about Animation is provided for reference only and is not available through exported packages and thus should not be imported or used on its own.

Inheritance

Animation does not extend any other symbol.

Animation is not extended by any other symbol.

Settings

Animation does not have any settings.

Private settings

Animation does not have any private settings.

Properties

events
#

Type EventDispatcher

Default new EventDispatcher()

from
#

Type Value

percentage
#

Type Time

playing
#

Type boolean

stopped
#

Type boolean

to
#

Type Value

Methods

constructor(

animation: IStartAnimation,
from: Value,
to: Value,
duration: number,
easing: $ease.Easing,
loops: number,
startingTime: number | null

)

#

Returns Animation

pause()

#

Returns void

play()

#

Returns void

stop()

#

Returns void

waitForStop()

#

Returns Promise

Events

Add event handlers to Animation object using its events.on() method.

Read about adding event handlers.

#stopped

Param { type: "stopped",
  target: this }

Invoked when animation was stopped, which happens in these situations:

1. When the animation reached the end.

2. When the stop() method is called.

3. When a new animation starts for the same key.

4. When calling set for the same key.