Skip to main content

AnimationOptions

Animation options for building an animation via constructor.

Index

Properties

optionalframeDuration

frameDuration?: number

Optionally specify a default frame duration in ms (Default is 100)

frames

frames: Frame[]

List of frames in the order you wish to play them

optionalreverse

reverse?: boolean

Optionally reverse the direction of play

optionalspeed

speed?: number

Optionally set a positive speed multiplier on the animation.

By default 1, meaning 1x speed. If set to 2, it will play the animation twice as fast.

optionalstrategy

Optionally specify the [[AnimationStrategy]] for the Animation

optionaltotalDuration

totalDuration?: number

Optionally specify a total duration of the animation in ms to calculate each frame's duration