Skip to content
Menu

Animation

Path follower

Path follower: A rounded tile that rides along a curling spiral track while the track itself draws in ahead of it, then reverses back to the start.

Using Path follower

Path follower uses the card preview frame with a dark theme setting.

Customize the preview

These controls are passed to the demo. Defaults and limits describe the preview; consult the implementation for its full prop API.

ControlTypeDefaultPreview limits
accentcolor#FF6A1FNo additional limit in the metadata.
durationnumber4From 1.5 to 10; step 0.5
tileSizenumber44From 20 to 72; step 2
alignToTangentbooleantrueNo additional limit in the metadata.
strokeWidthnumber12From 4 to 20; step 1
Which frameworks are available for Path follower?

Path follower is available for React, Vue, Svelte, Astro, HTML. The live preview uses React; the source observations below apply to index.tsx. Check the selected port before relying on the same interactions.

What does Path follower depend on?

The React metadata lists these npm dependencies beyond React: motion, clsx, tailwind-merge.

What accessibility details are visible in Path follower?

The React source for Path follower includes: attributes and handlers (aria-hidden, aria-label, aria-valuemax, aria-valuemin, aria-valuenow, onKeyDown, tabIndex); explicit roles (slider); key comparisons (ArrowDown, ArrowLeft, ArrowRight, ArrowUp, Space). These are source observations. Verify accessible names, focus order and keyboard behavior in the composed page.

How does Path follower handle reduced motion?

Path follower reads the motion preference in its React source through useReducedMotion(). Preference-dependent expressions in index.tsx: reduced ? "cursor-default" : dragging ? "cursor-grabbing" : "cursor-grab". Check the full implementation, shared styles and selected port with reduced motion enabled; these observations do not establish that every animation stops.

Connect your agent

Related open components