Marquee
marqueeA seamless, endlessly scrolling row for logos, photos or testimonials. It pauses on hover and focus, screen readers hear the content once, and reduced motion turns it into a row you scroll by hand. Pure CSS.
import { Marquee } from "@/components/forme/marquee/marquee";
const tags = [
"Data Table",
"Calendar",
"Toast",
"OTP Input",
"Area Chart",
"Prompt Input",
"Drawer",
"Sortable List",
"Dock",
"Lightbox",
];
const photos = ["coast", "dunes", "forest", "lake", "meadow", "aurora", "city"];
export function MarqueeDemo() {
return (
<div className="flex w-full flex-col gap-4">
<Marquee label="Components" duration={30}>
{tags.map((tag) => (
<span
key={tag}
className="rounded-full border border-border bg-card px-3.5 py-1.5 text-body-2-medium whitespace-nowrap"
>
{tag}
</span>
))}
</Marquee>
<Marquee label="Photographs" duration={45} reverse>
{photos.map((photo) => (
// eslint-disable-next-line @next/next/no-img-element
<img
key={photo}
src={`/images/${photo}.webp`}
alt=""
className="h-28 w-40 rounded-2xl object-cover"
/>
))}
</Marquee>
</div>
);
}Install
Adds the component, its registry dependencies, and the token stylesheet you import once.
Usage
import { Marquee } from "@/components/forme/marquee/marquee";
<Marquee label="Customers" fade>
{logos.map((logo) => (
<img key={logo.name} src={logo.src} alt={logo.name} className="h-6" />
))}
</Marquee>When to use
Reach for it
- Logo walls, testimonial strips and feature tickers on marketing pages.
- Content where the reader takes in a sample, not every item.
Use something else
- Anything someone has to read or click to get their work done — a moving target is hard to hit.
- Product UI. Motion for its own sake belongs to the marketing canvas.
API reference
Read from the source, so it is the API of the file you install. A prop marked * is required.
Marquee
A row that scrolls forever: logos, testimonials, a ticker of features.
| Prop | Type | Default | Description |
|---|---|---|---|
label* | string | — | Accessible name for the region. |
duration | number | 40 | Seconds for one full loop. Longer content wants a longer loop. |
reverse | boolean | false | |
fade | boolean | true | Fades the ends into the background. |
Also takes every prop of <div> attributes.
Accessibility
- The content renders twice for the loop, and the second copy is
aria-hidden, so a screen reader reads the list once. - It pauses on hover and while anything inside it has keyboard focus.
- The row is a labelled region, named by
label.
Motion
- A CSS animation slides the track by exactly one copy, so the loop has no seam and costs no JavaScript.
- Reduced motion stops it and turns it into a normal row you scroll by hand.
Related


Confirm Button
A destructive button that grows into its own confirmation on a spring, so the question appears where you are looking. Focus lands on Cancel, Esc or clicking away disarms it, and the confirm button shows a spinner while the action runs.
motion

Dynamic Island
A black pill that morphs on a spring to fit whatever it is showing: a timer, a call, a song or a notification. Content swaps through a short blur crossfade, the corners never stretch mid-morph, and each change is announced politely.
motion

Metal Button
A button with a chrome rim whose reflections travel slowly round it, and a glint that crosses the face on hover. Plain CSS in a server component, still for reduced motion.
motion






