Marquee

A scrolling text component that animates horizontally.

The Marquee component displays a continuous horizontal scrolling animation. It supports customizable speed, direction, and pause on hover functionality. Built from scratch using React and CSS animations. No dependencies on any UI library.

Quick Install

Install via shadcn/ui CLI

Examples

Default

Item 1
Item 2
Item 3
Item 4
Item 5
Item 1
Item 2
Item 3
Item 4
Item 5

Right Direction

Item 1
Item 2
Item 3
Item 4
Item 5
Item 1
Item 2
Item 3
Item 4
Item 5

Faster Speed

Item 1
Item 2
Item 3
Item 4
Item 5
Item 1
Item 2
Item 3
Item 4
Item 5

Pause on Hover

Item 1
Item 2
Item 3
Item 4
Item 5
Item 1
Item 2
Item 3
Item 4
Item 5