---
title: "IdleAnimationPreset | 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 IdleAnimationPreset

IdleAnimationPreset: "pulsescale" | "ring" | "pulseopacity" | "bounce"

Predefined `idle` animation types — each loops a single channel out and back to rest once per iteration, peaking at the midpoint (`delta` `0.5`).

-   `pulsescale` — scales up and back down, ~1 cycle/second by default.
-   `pulseopacity` — dims and back to full opacity, ~1 cycle/second by default.
-   `ring` — a rotational shake (several alternating wiggles) clustered around the midpoint, every few seconds by default.
-   `bounce` — a vertical hop clustered around the midpoint, every few seconds by default.

See `marker-animation-presets.ts` for each preset's exact keyframe config.
