---
title: "MaptilerAnimationOptions | JavaScript maps SDK"
description: "Documentation for MapTiler SDK"
---

> For AI agents: a documentation index is available at [/llms.txt](https://docs.maptiler.com/llms.txt). Markdown versions of all pages are available by appending .md to any URL.

# Interface MaptilerAnimationOptions

Configuration options for creating an animation.

#### Interface[](#interface)

MaptilerAnimationOptions

interface MaptilerAnimationOptions {  
    [delay](#delay)?: number;  
    [duration](#duration): number;  
    [iterations](#iterations): number;  
    [keyframes](#keyframes): [Keyframe](https://docs.maptiler.com/sdk-js/api-reference/types/Keyframe/)\[\];  
    [manualMode](#manualmode)?: boolean;  
}

##### Index

### Properties[](#properties)

[delay?](#delay) [duration](#duration) [iterations](#iterations) [keyframes](#keyframes) [manualMode?](#manualmode)

## Properties[](#properties-1)

### `Optional`delay[](#delay)

delay?: number

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

### duration[](#duration)

duration: number

The total duration of the animation in milliseconds.

### iterations[](#iterations)

iterations: number

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

### keyframes[](#keyframes)

keyframes: [Keyframe](https://docs.maptiler.com/sdk-js/api-reference/types/Keyframe/)\[\]

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

### `Optional`manualMode[](#manualmode)

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.
