Join our Discord Community
Layout

Marquee

Horizontal scrolling marquee component for React and Next.js applications. Built with TypeScript support, Tailwind CSS styling, and shadcn/ui design featuring smooth animations, customizable spacing, and fade effects.

Loading component...

Installation

npx shadcn@latest add https://www.shadcn.io/registry/marquee.json
npx shadcn@latest add https://www.shadcn.io/registry/marquee.json
pnpm dlx shadcn@latest add https://www.shadcn.io/registry/marquee.json
bunx shadcn@latest add https://www.shadcn.io/registry/marquee.json

Features

  • Smooth scrolling - Continuous horizontal animation with react-fast-marquee integration for React apps
  • Fade effects - Optional edge fading for seamless infinite scroll using Tailwind CSS gradients
  • Custom spacing - Configurable gaps between items with flexible layout control using TypeScript props
  • Performance optimized - Hardware-accelerated animations with minimal CPU usage for Next.js projects
  • Responsive design - Adapts to container width with touch-friendly mobile interactions
  • Customizable content - Support for any React elements with flexible styling using shadcn/ui theming
  • Open source - Free marquee component with useHooks integration and accessibility support

Examples

Without fading

Loading component...

Without pre-defined options

Loading component...

Custom spacing

Loading component...

Use Cases

  • Logo carousels - Brand showcases and partner displays with continuous scrolling
  • Testimonial displays - Customer reviews and feedback with smooth animation
  • News tickers - Breaking news and live updates with real-time content
  • Product showcases - Feature highlights and promotional content displays

Implementation

Built with react-fast-marquee for smooth performance. Supports fade effects and custom spacing. Hardware-accelerated with CSS transforms. Includes pause on hover and accessibility options.