The TimeDriver
class allows driving an animation sampler using time.
Inherits From : Driver
This module exposes no properties.
Method | Description |
---|---|
isRunning | isRunning(): BoolSignal Returns a BoolSignal indicating whether the animation is running. |
onAfterIteration | onAfterIteration(): EventSource<number> Returns an EventSource to which you may subscribe.The event fires when the animation with loopCount completes an iteration. Subscribers will receive the one-based index of the completed iteration. |
onCompleted | onCompleted(): EventSource<any> Returns an EventSource to which you may subscribe.The event fires once when the animation completes. |
reset | reset(): void Resets the driver progress to time point zero. |
reverse | reverse(): void Reverses the animation from the moment it is called and goes back in time. |
start | start(): void Starts the animation. |
stop | stop(): void Stops or pauses the animation. |