Infinite Marquee
Seamless looping strip with masked edge fades; pauses on hover, focus or with an optional pause button. Wraps statically under reduced motion.
Try it: Hover to pause, or use the Pause button.
Installation
Install with the shadcn CLI:
npx shadcn@latest add https://www.framekitui.live/r/infinite-marquee.jsonOr, with the @framekit namespace registered: npx shadcn@latest add @framekit/infinite-marquee. You can also copy the source into components/ui/infinite-marquee.tsx (view on GitHub).
Usage
import { InfiniteMarquee } from '@/components/ui/infinite-marquee'Props
| Prop | Type | Default | Notes |
|---|---|---|---|
children | ReactNode | — | Items (rendered twice for the loop; the copy is inert). |
speed | number | 28 | Seconds per loop. |
reverse | boolean | false | Scroll the other way. |
fade | boolean | true | Mask both edges. |
pauseOnHover | boolean | true | Pause on hover / focus-within. |
gap | number | 32 | Space between items (px). |
showControls | boolean | false | Visible pause / play button. |
label | string | 'Scrolling list' | Accessible region name. |
Dependencies
lucide-react
Related Text Animations components
- Scroll Text Fill
A large editorial statement whose words light up one by one as you scroll, each rising a few pixels into place; accent words get a sweeping underline. The full sentence is exposed to screen readers…
- Number Ticker
Counts to a value when scrolled into view with locale-aware grouping and tabular figures; re-animates from the current value when it changes.
- Charm Text
A sentence with a few enchanted words. Hover, focus or tap one and it recolours, draws an underline and a tiny glyph pops out on a spring; click pins it on. A chip variant sets glyph pills inline…
- Typewriter
Types and deletes through phrases.
- Word Cycle Text
A headline whose key word keeps changing its mind: each word rises letter by letter out of a soft blur inside a tinted capsule that resizes on a spring while the line glides to make room.
- Morphing Text
Overlapping blur-morph between phrases, aligned for inline sentences; pauses on hover.