AnimationPlayer
Extends:
AnimationPlayer It can play, pause or stop Animation or AnimationExpression (See below). AnimationPlayer is needed to use Animation or AnimationExpression AnimationPlayer emits events :
- for each animation's frame;
- when Animation is stopped
- when Animation is ending
Constructor Summary
Public Constructor | ||
public |
|
Member Summary
Public Members | ||
public |
animation: * |
|
public |
id: * |
|
public |
|
|
public |
promise: * |
|
public |
resolve: * |
|
public |
resolveWait: * |
|
public |
state: * |
|
public |
waitTimer: * |
Method Summary
Public Methods | ||
public |
frame() { this function is executed with each frame } |
|
public |
isEnded(): * |
|
public |
isPlaying(): * |
|
public |
isStopped(): * |
|
public |
{ Start animation } this function play one animation. |
|
public |
{ The animation is played after a number of frames } |
|
public |
{ Stop current animation } |
Public Constructors
public constructor() source
Public Members
public animation: * source
public id: * source
public promise: * source
public resolve: * source
public resolveWait: * source
public state: * source
public waitTimer: * source
Public Methods
public play(The: Animation): Promise source
{ Start animation } this function play one animation. If another animation is playing, it's stopped and the new animation is played
Params:
Name | Type | Attribute | Description |
The | Animation | animation to play |