Timeline Scrubber
A media scrubber with a waveform that lights up behind the playhead, a thumb that grows while dragging, chapter markers that snap within 1.5 s, a time bubble and full slider keyboard support.
Try it: Drag the waveform, or focus it and use ← → Space.
Installation
Install with the shadcn CLI:
npx shadcn@latest add https://www.framekitui.live/r/timeline-scrubber.jsonOr, with the @framekit namespace registered: npx shadcn@latest add @framekit/timeline-scrubber. You can also copy the source into components/ui/timeline-scrubber.tsx (view on GitHub).
Usage
import { TimelineScrubber } from '@/components/ui/timeline-scrubber'Props
| Prop | Type | Default | Notes |
|---|---|---|---|
duration | number | 84 | Length in seconds. |
markers | ScrubMarker[] | DEFAULT_SCRUB_MARKERS | { at, label } |
onTimeChange | (t) => void | — | Playhead change. |
Dependencies
motionlucide-react
Related Motion Showcase components
- Spring Reorder List
A priority list reordered by dragging the grip: the lifted row scales and deepens its shadow while siblings part on springs. Keyboard ↑ ↓ on a grip moves rows with live announcements.
- Lit Product Card 3D
A product card with real lighting: tilt follows the pointer, a specular highlight tracks the light while the cast shadow moves opposite, the product floats on its own Z layer and swatches recolour…
- Blur Cascade Heading
A keynote-style display headline that resolves out of focus: words or letters rise through a mask from blur to sharp on springs, and highlight words land last in a gradient.
- Page Curtain Transition
Route changes play a staggered column curtain: panels sweep up to cover, the next page name flashes on the curtain, then they lift away to reveal it. Reduced motion cross-fades.
- Perspective Tunnel Carousel
A row of 3:4 cards riding a corridor in real CSS 3D: tiny and flat on the back wall at the vanishing point, growing huge and angled along the side walls as they leave past the edges. The row drifts…
- Magnetic Dot Grid
A canvas field of dots that lean toward the pointer on spring physics, swell and tint near it, then settle with a soft wobble; clicks send a ripple. Theme-aware, static on reduced motion.