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;
}

Configures a marker's enter/exit/idle animation via a custom per-frame callback instead of a preset.

Type Declaration

  • custom: (alpha: number, marker: Marker) => void

    Called every frame with the already-eased progress (0–1, easing already applied) and the marker being animated. For enter, 0 is the starting (hidden) state and 1 is fully shown; for exit, 0 is fully shown and 1 is the end (hidden) state; for idle, alpha resets to 0 at the start of every loop iteration.

  • Optionalmagnitude?: never
  • Optionalpreset?: never
Was this helpful?