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.json

Or, 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

Component props
PropTypeDefaultNotes
childrenReactNode—Items (rendered twice for the loop; the copy is inert).
speednumber28Seconds per loop.
reversebooleanfalseScroll the other way.
fadebooleantrueMask both edges.
pauseOnHoverbooleantruePause on hover / focus-within.
gapnumber32Space between items (px).
showControlsbooleanfalseVisible pause / play button.
labelstring'Scrolling list'Accessible region name.

Dependencies

  • lucide-react
  • 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.

See all 15 Text Animations components