Animation
class Animation extends Component
Self-running animation
constructor
new Animation(options)
Create new instance of the Animation
| PARAMETER | TYPE | OPTIONAL | DEFAULT | DESCRIPTION | 
|---|---|---|---|---|
| options | object | ✔️ | {} | Options | 
Events
progress
Fires for every animation frame when animation is active.
Type: object
| PROPERTY | TYPE | DESCRIPTION | 
|---|---|---|
| event | object | Event object. | 
| event.progress | number | Current animation progress value. Value is ranged from 0(start) to 1(end).  | 
| event.easedProgress | number | Eased progress value. | 
loop
Fires for every animation loop except for the last loop
This will be triggered only when repeat > 0
Type: object
| PROPERTY | TYPE | DESCRIPTION | 
|---|---|---|
| event | object | Event object. | 
| event.progress | number | Current animation progress value. Value is ranged from 0(start) to 1(end).  | 
| event.easedProgress | number | Eased progress value. | 
| event.loopIndex | number | Index of the current loop. | 
finish
Fires when animation ends.
Type: void