Skip to content

Vizzu / Modules / vizzu / Anim / Control

Interface: Control

vizzu.Anim.Control

Control object for animation.

Methods

cancel

cancel(): void

Cancels the animation, will reject the animation promise.

Returns

void


pause

pause(): void

Pauses the controlled animation.

Returns

void


play

play(): void

Plays/resumes playing of the controlled animation.

Returns

void


reverse

reverse(): void

Changes the direction of the controlled animation.

Returns

void


seek

seek(value): void

Seeks the animation to the position specified by time or progress percentage. Seeking the animation to the end position will not trigger the animation promise to resolve.

Parameters

Name Type
value `${number}%` | Duration

Returns

void


stop

stop(): void

Stops the current animation seeking it back to its start position.

Returns

void


store

store(): Animation

Returns a reference to the actual animation for further reuse.

Returns

Animation