For AI agents: a documentation index is available at /llms.txt. Markdown versions of all pages are available by appending .md to any URL.
Type Alias MarkerCustomAnimationOptions
MarkerCustomAnimationOptions: MarkerAnimationBase & {
custom: (alpha: number, marker: Marker) => void;
magnitude?: never;
preset?: never;
}
custom: (alpha: number, marker: Marker) => void;
magnitude?: never;
preset?: never;
}
Type Declaration
custom: (alpha: number, marker: Marker) => void
Called every frame with the already-eased progress (
0–1,easingalready applied) and the marker being animated. Forenter,0is the starting (hidden) state and1is fully shown; forexit,0is fully shown and1is the end (hidden) state; foridle,alpharesets to0at the start of every loop iteration.Optionalmagnitude?: neverOptionalpreset?: never
Configures a marker's
enter/exit/idleanimation via a custom per-frame callback instead of a preset.