Type class
An animation of a setting, returned by animate(). It can be paused, resumed, stopped or waited for.
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 Default |
|---|---|
|
from # |
Type The value the animation starts from. |
|
percentage # |
Type How far the current loop has played, from |
|
playing # |
Type
|
|
stopped # |
Type
|
|
to # |
Type The value the animation goes to. |
Methods
|
constructor( animation: ) |
Returns |
|---|---|
|
pause() |
Returns Pauses the animation; |
|
play() |
Returns Resumes a paused animation. |
|
stop() |
Returns Stops the animation, leaving the setting at its current value. |
|
waitForStop() |
Returns Returns a promise that resolves when the animation stops. |
Events
Add event handlers to Animation object using its events.on() method.
Read about adding event handlers.
| #stopped |
Param { type: The animation stopped: it reached the end, |
|---|