# 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.

The customer logo strip is on every landing page, and it usually either sits still or scrolls like a ticker that never notices you. This one drifts past at a steady speed and fades out softly at both edges. Point at it and it eases to a stop instead of halting, with the logo under your pointer staying bright while the rest dim; move away and it eases back up to speed. The speed is in pixels per second, so a longer strip never moves faster.

## Install

```bash
npx shadcn@latest add https://hairlineui.com/r/logo-marquee.json
```

Needs React 19, Tailwind CSS v4 and shadcn/ui theme variables (any style, light and dark). Icons from lucide-react.

- npm: none
- Hairline UI components it needs (the CLI installs them too): none
- Docs and live preview: https://hairlineui.com/ui/logo-marquee
- Registry item (source): https://hairlineui.com/r/logo-marquee.json

## Usage

```tsx
import { LogoMarquee } from "@/components/logo-marquee";

<LogoMarquee logos={[<img key="a" src="/logos/acme.svg" alt="Acme" className="h-6" />, …]} />
```

## In a proof strip

Use monochrome SVGs with currentColor, so they take the muted tone and light up on hover.

```tsx
import { LogoMarquee } from "@/components/logo-marquee";
import { Acme, Globex, Initech, Umbrella } from "@/components/logos"; // your SVGs, using fill="currentColor"

export function Customers() {
  return (
    <section className="py-16 text-center">
      <p className="text-sm text-muted-foreground">Trusted by teams who ship weekly</p>
      <LogoMarquee
        className="mt-6"
        speed={32}
        logos={[
          <Acme key="acme" aria-label="Acme" className="h-6" />,
          <Globex key="globex" aria-label="Globex" className="h-6" />,
          <Initech key="initech" aria-label="Initech" className="h-6" />,
          <Umbrella key="umbrella" aria-label="Umbrella" className="h-6" />,
        ]}
      />
    </section>
  );
}
```

## Props

| Prop | Type | Default | 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. |

## 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.

## What it handles

The customer logo strip is on every landing page, and it either sits still or scrolls like a ticker that never notices you. This one drifts calmly, and stops when someone wants a closer look.

- **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.

## Replaces

a CSS marquee, edge fade masks, pause-on-hover code, a duplicated logo list, a reduced-motion fallback

## Where it fits

- **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.

## Notes

- 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.

License: MIT (https://hairlineui.com/license#components)
