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

Event fired by a marker's lifecycle animations — `enter`/`exit` fire `start`/`end` once each; `idle` additionally fires `iteration` once per loop.

type MarkerLifecycleAnimationEventData \= {  
    [preset](#preset):  
        | [EnterAnimationPreset](https://docs.maptiler.com/sdk-js/api-reference/types/EnterAnimationPreset/)  
        | [ExitAnimationPreset](https://docs.maptiler.com/sdk-js/api-reference/types/ExitAnimationPreset/)  
        | [IdleAnimationPreset](https://docs.maptiler.com/sdk-js/api-reference/types/IdleAnimationPreset/)  
        | "custom";  
    [target](#target): [Marker](https://docs.maptiler.com/sdk-js/api-reference/classes/Marker/);  
    [type](#type): | "enteranimationstart"  
    | "enteranimationend"  
    | "exitanimationstart"  
    | "exitanimationend"  
    | "idleanimationstart"  
    | "idleanimationiteration"  
    | "idleanimationend";  
}

##### Index

### Properties

[preset](#preset) [target](#target) [type](#type)

## Properties

### preset[](#preset)

preset:  
    | [EnterAnimationPreset](https://docs.maptiler.com/sdk-js/api-reference/types/EnterAnimationPreset/)  
    | [ExitAnimationPreset](https://docs.maptiler.com/sdk-js/api-reference/types/ExitAnimationPreset/)  
    | [IdleAnimationPreset](https://docs.maptiler.com/sdk-js/api-reference/types/IdleAnimationPreset/)  
    | "custom"

The preset configured for the phase that fired this event, or `"custom"` for a [MarkerCustomAnimationOptions](https://docs.maptiler.com/sdk-js/api-reference/types/MarkerCustomAnimationOptions/) animation.

### target[](#target)

target: [Marker](https://docs.maptiler.com/sdk-js/api-reference/classes/Marker/)

### type[](#type)

type:  
    | "enteranimationstart"  
    | "enteranimationend"  
    | "exitanimationstart"  
    | "exitanimationend"  
    | "idleanimationstart"  
    | "idleanimationiteration"  
    | "idleanimationend"
