TimeDriver

The TimeDriver class controls an animation.

Properties

This module exposes no properties.

Methods

Method

Description

isRunning

isRunning(): BoolSignal

Returns a BoolSignal indicating whether the animation is running.

onAfterIteration

onAfterIteration(): EventSource

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

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.

Last updated