Logo marquee
Logo marquee
A quiet strip of logos that notices you: it eases to a stop on hover and the logo you point at stays bright.
Dependencies
Interaction states
- moving — Two copies of the set loop seamlessly at speed px/s, masked to fade over the outer 12% on each side.
- hover — The playback rate eases from 1 to 0 over 650ms; the hovered logo goes to full ink, the others to 35%.
- leave — The rate eases back to 1 from wherever it was.
Installation
Add this component with your preferred package manager.
pnpm dlx shadcn@4.21.5 add @cavemio/logo-marqueeFirst install? Configure @cavemio once
Run npx shadcn@4.21.5 init if shadcn is not set up, then merge this entry into the registries field in your existing components.json. Keep your other settings and registries.
{
"registries": {
"@cavemio": "https://registry.cavemio.dev/r/cavemio-{name}.json"
}
}Where it’s used
Customer logo strips
The row of logos under a landing page hero.
“As seen in” press bars
Publications that have written about the product.
Partner and integration strips
The tools and platforms the product works with.
Sponsors and tech stacks
Show who backs a project or what it is built on.
What it handles
- A seamless loop — The speed is set in pixels per second, so a longer strip never moves faster.
- Soft edges — The strip fades out over the outer 12% on each side.
- It eases to a stop — Point at it and it slows to a halt instead of freezing. The logo under the pointer stays bright and the rest dim.
- Either direction — Choose left or right, and the space between logos.
- Cheap to run — One transform on the Web Animations API, so it costs nothing per frame.
- Accessible — Screen readers get one list of logos. With reduced motion the logos sit still in a centred, wrapping row.
Usage
Interactive local fixture. Data and async results are simulated in the preview; the caller supplies application services.
import { LogoMarquee } from "@/components/logo-marquee";
<LogoMarquee logos={[<img key="a" src="/logos/acme.svg" alt="Acme" className="h-6" />, …]} />Props
| Prop | Type | Description |
|---|---|---|
| logos | ReactNode[] | – · Images or inline SVGs, each with an accessible name. |
| speed | number | 36 · Pixels per second, whatever the strip’s length. |
| gap | number | 56 · Space between logos (px). |
| direction | "left" | "right" | "left" · Which way the strip drifts. |
| pauseOnHover | boolean | true · Ease to a stop while pointed at. |
Accessibility & motion
- Screen readers get one list of logos; the copy that makes the loop seamless is hidden. - Runs on the Web Animations API with a single transform, so it costs nothing per frame; the stop is a tween of playbackRate, not a jump. - With reduced motion the logos sit still in a centred, wrapping row.
pnpm dlx shadcn@4.21.5 add @cavemio/logo-marquee