# marker

`marker(name)` returns a zero-duration program milestone. Playback collects the
marker while sampling and delivers its event in Complete, after committed
values have been planned and rendered.

Related types: [`PibblAnimationProgram`](/reference/types/canvas-runtime/#pibblanimationprogram)
and [`PibblPlaybackEvent`](/reference/types/canvas-runtime/#pibblplaybackevent).

## API details from source

<span id="api-marker"></span>

Queues one named playback milestone without invoking user code.

```ts
marker: (name: string) => PibblAnimationProgram
```

Related API: [marker](/reference/functions/marker/), [PibblAnimationProgram](/reference/types/canvas-runtime/#pibblanimationprogram).

### Parameters

- **`name`** — Name delivered when playback reaches this milestone.

### Returns

A zero-duration marker program. See [PibblAnimationProgram](/reference/types/canvas-runtime/#pibblanimationprogram).

### See also

[PibblAnimationProgram](/reference/types/canvas-runtime/#pibblanimationprogram)

[View source — packages/core/src/lib/animation/program.ts:889](/source/packages/core/src/lib/animation/program-ts/#L889)

## Implementation guidance for agents

Read the [Animation and scheduling companion](/agents/topics/animation/) for ownership, adaptation, failure modes, and verification. [Agent start](/agents/) provides the version-selection workflow.

## Complete minimal examples

- [Compose keyframes and springs](/minimal-examples/animation/composition/): Run two independent tracks together, then mark, wait, and repeat. [Plain source](/minimal/animation/composition.tsx)
## Interactive examples

- [Signals and animation](/examples/signals-and-animation/) · [Full page](/experience/signals-and-animation/)
## Documentation version

Documentation built with @pibbl/core 0.0.2, revision 272a94a. ALPHA — NOT FOR PRODUCTION USE.
