On this page

Interface MaptilerAnimationOptions

Configuration options for creating an animation.

MaptilerAnimationOptions

interface MaptilerAnimationOptions {
    delay?: number;
    duration: number;
    iterations: number;
    keyframes: Keyframe[];
    manualMode?: boolean;
}
Index

Properties

delay?: number

Optional. The delay before the animation starts, in milliseconds. Defaults to 0 if not specified.

duration: number

The total duration of the animation in milliseconds.

iterations: number

The number of times the animation should repeat. Use 0 for no repeat, or Infinity for an infinite loop.

keyframes: Keyframe[]

The keyframes that define the animation states at various points in time.

manualMode?: boolean

Optional. If true, the animation will not be automatically managed by the animation manager and must be updated manually by calling update(). Defaults to false if not specified.

Was this helpful?
SDK JS
Reference
MaptilerAnimationOptions