TimelineAPI

API for controlling the animation timeline.

TimelineAPI interface

API for controlling the animation timeline.

Signature:

interface TimelineAPI

Properties

Property

Modifiers

Type

Description

currentFrame

readonly

number

The current frame number

isPlaying

readonly

boolean

Whether the animation is currently playing

Methods

Method

Description

goToFrame(frame)

Jumps to a specific frame in the timeline

pause()

Pauses the animation playback

play()

Starts playing the animation

Last updated: August 5, 2026 at 11:47 AMEdit this page