Components
Marquee
Infinite scrolling marquee that loops content horizontally.
Overview
<Marquee> creates an infinitely scrolling horizontal marquee. Content loops seamlessly. Supports configurable speed, direction, and hover-to-pause behavior.
Usage
Props
| Prop | Type | Default | Description |
|---|---|---|---|
speed | number | 40 | Scroll speed in pixels per second |
direction | "left" | "right" | "left" | Direction of scrolling |
pauseOnHover | boolean | false | Whether to pause the animation when hovered |
gap | number | 40 | Gap between repeated items in pixels |
children | ReactNode | -- | Content to scroll |
className | string | -- | CSS class for the container |