AccessibleThemeableCopy & pasteDark modeKeyboard firstTailwind v4React 19Zero runtime depsResponsiveOpen source
Open sourceResponsiveZero runtime depsReact 19Tailwind v4Keyboard firstDark modeCopy & pasteThemeableAccessible
Installation
$ pnpm dlx shadcn@latest add @synccn/marqueeFirst time in this project? Connect synccn with one command.
Usage
import { Marquee } from "@/components/ui/marquee";<Marquee duration={30}>…</Marquee>API reference
Generated from the component's TypeScript types, so it always matches the code.
Marquee
Infinite scrolling row (or column). Pauses on hover; edges fade out.
PropTypeDescription
- reverse
booleanDefault
falseScroll the other way.
- vertical
booleanDefault
falseScroll up instead of sideways.
- pauseOnHover
booleanDefault
truePause while the pointer is over it.
- duration
numberDefault
30Seconds for one full loop.
- gap
stringDefault
"1rem"CSS length between items.
- repeat
numberDefault
2Copies of the content (2 is enough for most widths).
- fade
booleanDefault
trueFade the edges.
- children
React.ReactNodeContent to render.
- className
stringExtra classes for the root element.
Dependencies
Read from the component's imports when the site builds. The CLI installs all of these for you.
Helpers
- lib/utilscn (merges class names)
npm packages
- clsx for cn()
- tailwind-merge for cn()
Accessibility
From the source
Read from this component's code when the site builds, so it can't drift.
- ARIA attributes: aria-hidden
More motion
Number TickerCounts up to a number when it scrolls into view.TypewriterTypes and deletes a list of phrases.Shimmer TextA light sweep across text for loading moments.Word RotateCycles words with a vertical slide.Text ScrambleCharacters scramble and resolve left to right.Border BeamA light that travels around a card's border.