Logo Marquee
The endless "Trusted by" strip that eases to a stop and scrubs with a drag.
- Category
- Creative
- Access
- Free with an account
- Source
- 423 lines · one file
- States
- 5 drawn
- Added
- 21 Oct 2026
The decision inside it
It makes only as many copies as the width needs
Most marquees render the list twice and hope; on an ultra-wide screen the copy runs out and a gap slides across. Here the strip and one set are measured and re-counted when either changes, and speed is in pixels per second, so five logos and fifty move at the same pace.
When to use it
Use Logo Marquee for the "Trusted by" strip on a landing page: an endless row of logos that eases to a stop on hover and scrubs with a drag. Pass an image per logo, or just a name for a wordmark; it never draws brand logos itself.
Installation
How you get it
Paste this into Claude Code, Cursor, Codex or any coding agent. It installs the file and uses it as it is, instead of writing a new one.
Use Liro's Logo Marquee for this.
Install it: npx shadcn@latest add @liro/logo-marquee
(the @liro registry is set up in components.json, with LIRO_KEY in .env.local)
Import it from @/components/ui/logo-marquee.
Do not rewrite or restyle it. Pass my data through its props
and keep its built-in states.For the full brief with every prop and the mistakes assistants usually make, use Copy prompt above. Free components install through the @liro registry with your CLI token: see the Namespaced tab.
Usage
import { LogoMarquee } from "@/components/ui/logo-marquee";
export function Customers() {
return (
<LogoMarquee
label="Trusted by"
items={[{ name: "Vertically", src: "/logos/vertically.svg" }, { name: "Madgixs" }, { name: "Liro" }]}
rows={2}
speed={36}
/>
);
}API reference
“Copy prompt” above puts a full brief on your clipboard, install command, dependencies, props, and the mistakes an assistant usually makes with this component.
Props
Read from the component’s own TypeScript interface when the site is built, so this table cannot drift from the file you install.
| Type | Notes | ||
|---|---|---|---|
items | MarqueeItem[] | Yes | – |
speed | number | No | Pixels per second. Default 40. |
rows | 1 | 2 | No | One row, or two that split the list. Default 1. |
direction | "left" | "right" | No | Which way the first row moves. Default "left". |
alternate | boolean | No | With two rows, run the second the other way. Default true. |
gap | number | No | Space between logos, in px. Default 64. |
logoHeight | number | No | Height of a logo, in px: an image's height, a wordmark's cap size. Default 28. |
pauseOnHover | boolean | No | Ease to a stop under the pointer. Default true. |
draggable | boolean | No | Drag and sideways-swipe scrubbing. Default true. |
fade | boolean | No | Fade the left and right edges. Default true. |
grayscale | boolean | No | Greyscale until hovered. Default true. |
label | string | No | Names the strip for screen readers. Default "Trusted by". |
Dependencies
npm packages
clsxtailwind-mergeLiro foundations, installed alongside it
liro-themeStates
All of them are drawn by the component. None is left for you to design.
- Moving
- Paused on hover
- Dragging
- Two rows
- Reduced motion
Accessibility
- Keyboard reachable throughout, in visual order
- Focus trapped in overlays, Escape closes them
- Focus returns to whatever opened it
- Live regions announce what changed, not that something did
- Honours prefers-reduced-motion
Responsive behavior
- Sizes to its container, not the viewport
- Usable from 320px up
- Pointer-based interaction, so trackpad and touch both work
- No hover-only affordances