Animation
Direct Subclass:
Animation. Base animation class.
Constructor Summary
Public Constructor | ||
public |
|
Member Summary
Public Members | ||
public |
|
|
public |
|
|
public get |
True when animation has finished |
|
public |
|
|
public |
|
|
public |
|
|
public get |
True when animation is paused |
|
public |
|
|
public |
|
|
public |
|
Private Members | ||
private |
|
|
private |
|
|
private |
|
Method Summary
Public Methods | ||
public |
Pause animation |
|
public |
Resume animation |
|
public |
Promise-like interface |
|
public |
tick() |
|
public |
Toggle animation |
Private Methods | ||
private abstract |
init animation |
|
private abstract |
called on every tick |
Public Constructors
public constructor() source
Public Members
public alpha source
public controls source
public duration source
public elapsedDuration source
public ignoreGlobalToggle source
public pausedDuration source
public pausedTime source
public startTime source
Private Members
private _hold source
private _paused source
private _resolveList source
Public Methods
public pause(hold: Boolean): undefined source
Pause animation
Params:
Name | Type | Attribute | Description |
hold | Boolean |
|
put animation on a hold which must be release before it can be resumed |
public resume(releaseHold: Boolean): undefined source
Resume animation
Params:
Name | Type | Attribute | Description |
releaseHold | Boolean |
|
release a hold on the animation |
public then(callback: Function): Promise source
Promise-like interface
Params:
Name | Type | Attribute | Description |
callback | Function | a callback |