Marquee

Seamless infinite marquee that reacts to scroll speed and pauses on hover.

gsapMIT · free
Smooth✦Kinetic✦Tactile✦Alive✦Fluid✦
Next.jsReactGSAPTailwindTypeScriptshadcn

Installation

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

Usage

import { Marquee } from "@/components/marquee";

<Marquee speed={60}>
  <span>Smooth</span>
  <span>Kinetic</span>
  <span>Alive</span>
</Marquee>

Props

PropTypeDefaultDescription
children*ReactNode–
speednumber80Pixels per second.
direction"left" | "right""left"Direction of travel.
pauseOnHoverbooleantrueEase to a stop while hovered.
scrollReactivebooleantrueSpeed up with scroll and flip direction when scrolling up.
fadebooleantrueFade the left and right edges.
gapstring"3rem"Space between items (and between repeated copies), any CSS length.
classNamestring–