Velocity Band

Velocity Band

A typographic marquee whose drift speed and skew react to scroll velocity — rows alternate direction and lean into hard scrolls.

Installation

▸ Run the following command

npx shadcn@latest add https://www.mellowui.com/r/velocity-band.json

▸ Or install manually

  1. Copy the source from the Code tab above.
  2. Place it at components/mellow/velocity-band.tsx
  3. Import and use.

API Reference

PropTypeDefaultDescription
rowsstring[][]One array of words per marquee row. Rows alternate direction.
baseSpeednumber54Base drift speed in px/s when the page is still.
velocityBoostnumber200How much scroll velocity boosts the drift. 0 disables the reaction.
maxSkewnumber6Maximum skew angle in degrees at high scroll velocity.
serifAlternatebooleantrueAlternate serif-italic and sans words. False for all-sans.
classNamestringAdditional CSS classes for the wrapper.