Sequence
docs
React components

Marquee

An infinite scrolling marquee component for showcasing logos or text.

Overview

The Marquee component creates a scrolling container that continuously loops its content. It's often used for displaying partner logos, testimonials, or news tickers. It supports horizontal and vertical scrolling, pausing on hover, and custom speeds.

Usage

import { Marquee } from '@/components/core/marquee';

function Partners() {
  return (
    <Marquee pauseOnHover className="bg-muted py-4">
      <img src="/logo1.png" className="mx-4 h-8" />
      <img src="/logo2.png" className="mx-4 h-8" />
      <img src="/logo3.png" className="mx-4 h-8" />
    </Marquee>
  );
}

Props

PropTypeDefaultDescription
childrenReact.ReactNodeRequiredThe content to scroll.
reverse?booleanfalseIf true, scrolls in the opposite direction.
pauseOnHover?booleanfalseStops animation when the mouse hovers over the marquee.
vertical?booleanfalseScrolls vertically instead of horizontally.
repeat?number4Number of times to repeat the children to create the infinite effect.
className?string-Optional CSS class names.

On this page