Rope Marquee

Rope Marquee

A marquee strung on a real rope — type flows along a verlet-simulated line you can grab, yank, and pluck while it sways back into its swags.

Installation

▸ Run the following command

npx shadcn@latest add https://www.mellowui.com/r/rope-marquee.json

▸ Or install manually

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

API Reference

PropTypeDefaultDescription
textstringThe line of type strung on the rope. Repeated to fill it.
speednumber42Flow speed in px/s along the rope. Negative flows the other way.
pinsnumber3Pinned points along the rope — 2 is one swag, 3 a double swag, and so on.
slacknumber0.08Extra rope length as a fraction of width — more slack, deeper sag.
heightnumber190Container height in px.
gravitynumber1500Downward pull in px/s² — higher snaps back harder.
interactivebooleantrueAllow grabbing and plucking the rope.
textClassNamestring"font-serif text-[26px] italic"Classes for the glyphs — font, size, fill.
classNamestringAdditional CSS classes.