---
title: "MarkerPresetAnimationOptions | 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 MarkerPresetAnimationOptions<Preset>

MarkerPresetAnimationOptions: [MarkerAnimationBase](https://docs.maptiler.com/sdk-js/api-reference/types/MarkerAnimationBase/) & {  
    custom?: never;  
    magnitude?: number;  
    preset: [Preset](#preset);  
}

Configures a marker's `enter`/`exit`/`idle` animation via a predefined preset.

#### Type Parameters

-   Preset extends string

#### Type Declaration

-   ##### `Optional`custom?: never
    
-   ##### `Optional`magnitude?: number
    
    Scales the preset's motion from rest (`0`) up to its full designed displacement (`1`, the default) — values beyond `1` exaggerate it. Has no effect on presets with no independent "how far" axis.
    
-   ##### preset: [Preset](#preset)
    
    Predefined animation type.
