Curved Marquee

Text flowing endlessly along a wave-shaped line.

no dependenciesMIT · free

Installation

npx shadcn@latest add https://ombakui.com/r/curved-marquee.json

Usage

import { CurvedMarquee } from "@/components/curved-marquee";

<CurvedMarquee text="Make waves ✦ Ride the swell ✦ " />

Props

PropTypeDefaultDescription
text*string–Text to loop along the curve. A separator like " ✦ " at the end keeps it readable.
speednumber60Pixels per second.
curvenumber40How tall the wave is (0 = straight line).
fontSizenumber44Font size in px (in the 1000-wide drawing).
reversebooleanfalseReverse direction.
classNamestring–