---
title: "MapTilerMarkerAnimations | 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.

# Type Alias MapTilerMarkerAnimations

Lifecycle animations played as a marker enters, idles on, and exits the map.

type MapTilerMarkerAnimations \= {  
    [enter](#enter)?: [MarkerAnimationOptions](https://docs.maptiler.com/sdk-js/api-reference/types/MarkerAnimationOptions/)<[EnterAnimationPreset](https://docs.maptiler.com/sdk-js/api-reference/types/EnterAnimationPreset/)\>;  
    [exit](#exit)?: [MarkerAnimationOptions](https://docs.maptiler.com/sdk-js/api-reference/types/MarkerAnimationOptions/)<[ExitAnimationPreset](https://docs.maptiler.com/sdk-js/api-reference/types/ExitAnimationPreset/)\>;  
    [idle](#idle)?: [MarkerIdleAnimationOptions](https://docs.maptiler.com/sdk-js/api-reference/types/MarkerIdleAnimationOptions/);  
}

##### Index

### Properties

[enter?](#enter) [exit?](#exit) [idle?](#idle)

## Properties

### `Optional`enter[](#enter)

enter?: [MarkerAnimationOptions](https://docs.maptiler.com/sdk-js/api-reference/types/MarkerAnimationOptions/)<[EnterAnimationPreset](https://docs.maptiler.com/sdk-js/api-reference/types/EnterAnimationPreset/)\>

Played once the marker is added to a map.

### `Optional`exit[](#exit)

exit?: [MarkerAnimationOptions](https://docs.maptiler.com/sdk-js/api-reference/types/MarkerAnimationOptions/)<[ExitAnimationPreset](https://docs.maptiler.com/sdk-js/api-reference/types/ExitAnimationPreset/)\>

Played when `remove()` is called. The marker stays on the map, still receiving updates, until this animation finishes.

### `Optional`idle[](#idle)

idle?: [MarkerIdleAnimationOptions](https://docs.maptiler.com/sdk-js/api-reference/types/MarkerIdleAnimationOptions/)

Looped while the marker sits on the map, after `enter` finishes (or immediately, if no `enter` is configured).
