Skip to content
Onycx-ui
ESC

Scroll Marquee Word

Drift an oversized word behind a short statement as the page scrolls.

Dependencies
motion
Size
134 lines
Controls
10 controls

Installation

CLI · shadcn registry

npx shadcn@latest add https://ui.onycx.dev/r/scroll-marquee-word.json

1 · Dependencies

npm install motion

2 · Copy the source

components/onycx/scroll-marquee-word.tsx

Requires React 19 and Tailwind CSS v4. Copy the source from the scroll-marquee-word.tsx tab after tweaking: your values are baked in as the new defaults. Exported image examples use portable sample artwork. Replace it with your own media as needed.

Props

PropTypeDefaultDescription
word / repeatstring / number"STUDIO VEXA" / 3Backdrop word and how many times it repeats in the row.
driftnumber1000Pixels the row travels left while the section crosses the viewport.
wordOpacity / italicnumber / boolean0.05 / trueBackdrop opacity and italic serif.
eyebrow / heading / bodystring—Statement copy; use | in heading for line breaks.
heightnumber180Section min-height in vh.
color / muted / accent / backgroundstring—Text, body, eyebrow and section colours.