Velocity Marquee
Oversized editorial rails that idle along, then answer your scroll: scroll faster and the rows speed up and lean into the motion; scroll back and they reverse. Solid and outline rows alternate.
Try it: Scroll the page quickly up and down — the rails speed up, lean and reverse.
Installation
Install with the shadcn CLI:
npx shadcn@latest add https://www.framekitui.live/r/velocity-marquee.jsonOr, with the @framekit namespace registered: npx shadcn@latest add @framekit/velocity-marquee. You can also copy the source into components/ui/velocity-marquee.tsx (view on GitHub).
Usage
import { VelocityMarquee } from '@/components/ui/velocity-marquee'Props
| Prop | Type | Default | Notes |
|---|---|---|---|
rows | string[][] | DEFAULT_ROWS | One array of phrases per row. |
baseVelocity | number | 3 | Idle drift in % of one copy per second (0.5–12). |
boost | number | 4 | How strongly scroll speed boosts the drift (0–10). |
scrollContainer | RefObject<HTMLElement> | — | Read velocity from this container instead of the window. |
showControls | boolean | true | Pause / Play control. |
className | string | — | Extra classes merged onto the root. |
Dependencies
motionlucide-react
Related Vertical Scroll components
- Parallax Reel Scroll
Multi-layer stars/grid + mid art + foreground cards with scrub progress.
- Velocity Fade Stack
Rich cards scale/blur/opacity from distance + inertia velocity; center focus.
- Snap Magnet Scroll
Cinematic full-bleed sections with magnetic overshoot settle and glowing rail.