> ## Documentation Index
> Fetch the complete documentation index at: https://www.logo.dev/docs/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> Logo.dev serves logos and brand data for companies that already exist. It does not design logos. If someone wants a logo designed, say so and stop.
> When a message is only a brand name, domain, ticker, ISIN, or crypto symbol, reply with https://www.logo.dev/search?q=<url-encoded term> and the matching img.logo.dev call. Never assert whether a specific brand is in the index.
> Image URLs come from img.logo.dev with a publishable key in the token query parameter: https://img.logo.dev/:domain?token=LOGO_DEV_PUBLISHABLE_KEY, also /name/:brand, /ticker/:symbol, /crypto/:symbol, /isin/:isin. JSON comes from api.logo.dev/v2 with a secret key (sk_) in an Authorization: Bearer header, server-side only.
> Product names: the Logo.dev CDN serves images from img.logo.dev, and its usage unit is CDN requests. The Logo.dev API returns JSON from api.logo.dev/v2, and its usage unit is API credits. The Logo.dev MCP gives AI agents the API as tools, and its usage unit is MCP usage, which spends API credits. The features are Logo, Search, Brand, and Transaction. Transaction (beta) is a separate service at https://www.logo.dev/api/transaction with its own beta key. Never recommend the deprecated v1 routes (/search, /brand, /describe, /logo/*). Use /v2/brands and /v2/search.
> Attribution: a commercial project on the free Community plan must show a visible link, <a href="https://logo.dev">Logos provided by Logo.dev</a>, on its production site. Personal projects and paid plans need none. Rules: https://www.logo.dev/docs/platform/attribution.
> Report a wrong, missing, or outdated logo at https://www.logo.dev/update. Email support@logo.dev for anything broken and sales@logo.dev for volume pricing and contract terms.
> MCP setup is at https://www.logo.dev/docs/mcp/introduction and webhooks at https://www.logo.dev/docs/webhooks.

# Build an animated logo wall

> Show more customers and integrations in less space. Build an animated logo wall where every logo loads from a Logo.dev image URL.

```text Use case prompt wrap theme={null}
Build an animated logo wall, following https://www.logo.dev/docs/use-cases/animated-logo-wall.md

Read that page and inspect this project's stack. Use this project's existing conventions.

Build a grid of tiles where each tile cycles through a small deck of company logos, and the swap sweeps across the grid column by column. Build every logo URL from a domain. Pause the animation while the grid is off-screen, and show a static grid to visitors who prefer reduced motion. Check every logo in the domain list by eye before you ship.

For API details, read https://www.logo.dev/docs/logo-images/introduction.md
```

A logo wall shows traction on a landing page: customers, integrations, or supported companies. An animated wall fits three times the brands into the same space, and it adds motion without a video. Logo.dev supplies every logo from a domain as a plain image URL, so the wall needs no server code. Your app decides which domains to show, the grid shape, and how the logos look on your background.

## Choose the domains

* **Match your background.** Set the `theme` and `greyscale` [image parameters](https://www.logo.dev/docs/logo-images/introduction.md#parameters) to suit your surface.
* **Check the list by eye.** A domain with no logo shows a [monogram](https://www.logo.dev/docs/logo-images/introduction.md#fallback-images), which looks out of place in a customer wall. Look at every tile before you ship.
* **Count the domains.** The wall needs `columns × rows × deckSize` domains. The default 5 × 3 grid with 3 logos per tile needs 45.

## Render the wall

The component takes your domain list, the grid shape, and your [publishable key](https://www.logo.dev/docs/platform/api-keys.md):

```tsx LogoGrid.tsx expandable theme={null}
import { useEffect, useMemo, useRef, useState } from "react";
import type { CSSProperties } from "react";

type LogoGridProps = {
  /** Your Logo.dev publishable key (pk_…). */
  token: string;
  /** Domains to show. Provide columns × rows × deckSize of them. */
  domains: string[];
  columns?: number;
  rows?: number;
  /** How many logos each tile cycles through. */
  deckSize?: number;
};

// One global tick advances every tile together; the per-column transition
// delay turns the shared swap into a left-to-right wave.
const STEP_MS = 3000;
const REVEAL_MS = 400;
const COLUMN_DELAY_MS = 120;
const TRAVEL_PX = 40;
const EASE = "cubic-bezier(0.17, 0.17, 0.3, 1)";

function useReducedMotion() {
  const [reduced, setReduced] = useState(false);
  useEffect(() => {
    const mq = window.matchMedia("(prefers-reduced-motion: reduce)");
    const update = () => setReduced(mq.matches);
    update();
    mq.addEventListener("change", update);
    return () => mq.removeEventListener("change", update);
  }, []);
  return reduced;
}

export function LogoGrid({
  token,
  domains,
  columns = 5,
  rows = 3,
  deckSize = 3,
}: LogoGridProps) {
  const ref = useRef<HTMLDivElement>(null);
  const [inView, setInView] = useState(false);
  const reduced = useReducedMotion();
  const [active, setActive] = useState(0);

  const decks = useMemo(() => {
    const tiles = columns * rows;
    return Array.from({ length: tiles }, (_, i) =>
      domains.slice(i * deckSize, i * deckSize + deckSize)
    );
  }, [domains, columns, rows, deckSize]);

  // Only animate while the grid is on screen.
  useEffect(() => {
    const el = ref.current;
    if (!el) {
      return;
    }
    const observer = new IntersectionObserver(([entry]) =>
      setInView(entry.isIntersecting)
    );
    observer.observe(el);
    return () => observer.disconnect();
  }, []);

  const running = inView && !reduced;

  useEffect(() => {
    if (!running) {
      return;
    }
    const id = setInterval(() => {
      setActive((v) => (v + 1) % deckSize);
    }, STEP_MS);
    return () => clearInterval(id);
  }, [running, deckSize]);

  // Every logo in a deck stays mounted in one of three positions: the current
  // logo in place, the previous one parked above, and the next waiting below.
  // Because the incoming layer is already in its start position, the swap is a
  // plain style change and the transition fires with no extra bookkeeping.
  const layerStyle = (index: number, columnIndex: number): CSSProperties => {
    const delay = (columnIndex + 1) * COLUMN_DELAY_MS;
    const transition = `opacity ${REVEAL_MS}ms ${EASE} ${delay}ms, translate ${REVEAL_MS}ms ${EASE} ${delay}ms`;
    if (index === active) {
      return { opacity: 1, translate: "0 0", transition };
    }
    if (index === (active - 1 + deckSize) % deckSize) {
      return { opacity: 0, translate: `0 -${TRAVEL_PX}px`, transition };
    }
    return { opacity: 0, translate: `0 ${TRAVEL_PX}px`, transition };
  };

  // Parameters: https://www.logo.dev/docs/logo-images/introduction#parameters
  const src = (domain: string) =>
    `https://img.logo.dev/${domain}?token=${token}&format=webp&retina=true&size=52`;

  return (
    <div
      aria-label="Company logos"
      className="grid gap-3 sm:gap-4 overflow-hidden"
      ref={ref}
      role="img"
      style={{ gridTemplateColumns: `repeat(${columns}, minmax(0, 1fr))` }}
    >
      {decks.map((deck, tileIndex) => (
        <div
          className="relative flex aspect-square items-center justify-center"
          key={`tile-${tileIndex}`}
        >
          {deck.map((domain, layerIndex) => (
            <span
              aria-hidden="true"
              className="absolute inset-0 flex items-center justify-center"
              key={domain}
              style={layerStyle(layerIndex, tileIndex % columns)}
            >
              <img
                alt=""
                className="h-[52px] w-[52px] object-contain"
                height={52}
                loading="lazy"
                src={src(domain)}
                width={52}
              />
            </span>
          ))}
        </div>
      ))}
    </div>
  );
}
```

```tsx Usage theme={null}
import { LogoGrid } from "./LogoGrid";

const DOMAINS = [
  "stripe.com", "shopify.com", "github.com", "figma.com", "notion.so",
  "linear.app", "vercel.com", "slack.com", "zoom.us", "spotify.com",
  "airbnb.com", "netflix.com", "amazon.com", "google.com", "microsoft.com",
  "apple.com", "dropbox.com", "atlassian.com", "gitlab.com", "cloudflare.com",
  "datadoghq.com", "twilio.com", "hubspot.com", "salesforce.com", "intercom.com",
  "zendesk.com", "mailchimp.com", "openai.com", "anthropic.com", "nvidia.com",
  "adobe.com", "canva.com", "framer.com", "webflow.com", "discord.com",
  "reddit.com", "pinterest.com", "paypal.com", "coinbase.com", "robinhood.com",
  "doordash.com", "uber.com", "asana.com", "segment.com", "x.com",
];

export function Customers() {
  return <LogoGrid token="LOGO_DEV_PUBLISHABLE_KEY" domains={DOMAINS} />;
}
```

For a static logo cloud, set `deckSize` to 1. For wide wordmark lockups instead of square logos, use the [customer logo wall](https://www.logo.dev/docs/use-cases/customer-logo-wall.md).

## Test the wall

Scroll the wall off-screen and back, and check that it pauses. Turn on reduced motion in your operating system, and check that the grid holds still. Add `made-up-startup.io` to the list, and check that its tile shows a monogram, not a broken image.

> [card] [Logo.dev CDN](https://www.logo.dev/docs/logo-images/introduction.md)
>
> Every image parameter: size, format, theme, greyscale, retina, trimpad, and fallback.

> [card] [Customer logo wall](https://www.logo.dev/docs/use-cases/customer-logo-wall.md)
>
> Build a trusted-by wall from wide wordmark lockups.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.