React Logo Carousel with Drag and Pause
ProA single row of customer logos that never ends. It drifts sideways under one short trust line, slows to a halt when the pointer arrives, follows a drag or a swipe, and has a real pause button for anyone who wants it still.
What this logo carousel does
Social Proof Section with Logo Carousel is a React and Tailwind CSS logo carousel that loops a row of customer logos sideways without a seam, stops on hover, scrubs by drag or swipe, and pauses from a button, in Next.js or any React app.
Most logo sliders are a CSS keyframe on a duplicated list. That gets the loop, but it cannot be dragged, it snaps when it pauses, and it shows a gap on a very wide screen. Here the position is driven frame by frame, so the speed eases down and back up, a flick carries on with its own momentum, and the row is copied as many times as the viewport needs.
You hand it your logos as a list. Each entry takes a name and any SVG or image, so there is no map inside the file to edit before your own customers appear.
Parts of the carousel
Trust line
A centred sentence in muted text above the row, capped at 32rem. Pass an empty string and it is not rendered, leaving the logos alone.
Looping track
Your logos are measured once, then repeated until they cover the container plus one spare set. The count is recalculated whenever the container or the list changes size.
Edge fade
A mask fades the outer 9% of each side to nothing, so logos appear and leave softly on any background colour.
Hover focus
Resting the pointer on a logo keeps it at full strength and drops the others to a quarter opacity while the drift eases to zero.
Drag and swipe
After six pixels of sideways movement the row follows the pointer. On release it keeps the speed of the gesture and settles back into the normal drift.
Pause button
A 32 pixel round button under the row stops and restarts the motion. Its label switches between pause and play for screen readers.
When a moving logo row is the right call
Use it when
- You have more customer logos than fit across one line and want them all seen.
- The strip sits right under a hero, where a light band of names is enough.
- Phone visitors should be able to swipe back to a logo they just missed.
- Your logos arrive as mixed SVG files and images and you want to pass them in as they are.
- Some logos should link to a customer story page.
Skip it when
- The list is five logos or fewer. A static row says the same thing without repeating itself.
- The band sits beside a long article or a form, where constant sideways motion competes with reading.
- You plan to launch with the default marks. They are real companies and are there only to show the effect.
- Brand rules for you or your customers forbid moving or dimming their logo.
- You want quotes, numbers or faces. This block shows names and nothing else.
Adding your client logos
Build an items array with one object per customer. The name is announced to screen readers and is also printed in bold when no logo is given, so a company without artwork still has a place in the line.
The logo slot scales any SVG or image to a 36 pixel tall box, 40 on larger screens, and keeps its width in proportion. Wide wordmarks and compact marks will look uneven at one shared height, so wrap a logo in a span with a smaller height when it reads too large.
Add an href and that logo becomes a link. Tabbing to it moves the row so the logo sits in view before the focus ring is drawn, and the copies used for the loop stay out of the tab order.
Speed is in pixels per second and direction is left or right. Slower than the default suits a short list. For a second band that runs the other way, render the block twice with opposite directions and an empty headline on the lower one.
npx wensity@latest add social-proof-section-with-logo-carousel --type block
import { LogoCarouselSocialProof } from "@/components/wensity/blocks/social-proof-section-with-logo-carousel";import { AcmeLogo, GlobexLogo, InitechLogo } from "@/components/customer-logos";export function Customers() {return (<LogoCarouselSocialProofheadline="Used by 600 studios and product teams"speed={36}items={[{ name: "Acme", logo: <AcmeLogo />, href: "/customers/acme" },{ name: "Globex", logo: <GlobexLogo /> },{ name: "Initech", logo: <InitechLogo /> },{ name: "Hooli", logo: <img src="/logos/hooli.svg" alt="" /> },{ name: "Vandelay" },{ name: "Umbrella", logo: <img src="/logos/umbrella.svg" alt="" /> },]}/>);}
Props
| Prop | Type | Default | Description |
|---|---|---|---|
items | { name: string; logo?: ReactNode; href?: string }[] | 10 placeholder wordmarks | Your customers. Replace the whole list before launch, since the defaults are real companies. |
headline | string | "Trusted by 2,400 teams worldwide" | The trust line. Use your real customer count, or an empty string for a bare logo strip. |
speed | number | 44 | Drift in pixels per second. Lower it when the list is short so repeats come round less often. |
direction | "left" | "right" | "left" | Which way the logos travel. Flip it on a second instance to stack two opposing bands. |
className | string | - | Classes for the section, mainly to swap the warm off white or near black background for your page colour. |
Motion, access and cost
Reduced motion
Visitors who prefer reduced motion get every logo once in a centred, wrapping row. Nothing drifts, nothing is duplicated, and the pause button is left out because there is nothing to pause.
A real pause control
Content that moves on its own for more than five seconds needs a way to stop it. The button does that for keyboard and switch users, who cannot hover.
Idle when hidden
The frame loop skips its work while the row is scrolled out of the viewport, so a carousel far down the page costs nothing until it is seen.
Read once
Only the first set of logos is exposed to assistive technology, each with its company name. The repeated sets are hidden, so a screen reader hears ten names, not thirty.
Vertical scroll kept
The row claims horizontal gestures only. A thumb moving up or down over the logos still scrolls the page.
Clicks survive a drag
Letting go after a drag does not open the link under the pointer. A plain click or tap on a linked logo still does.
What it needs
Framer Motion for the frame loop and Tabler Icons for the pause and play glyphs. The logos themselves are inline SVG, so no image requests are made for the defaults.
Block details
- Category
- Social Proof Sections
- Renders
- JavaScript animation. Paints first, then animates
- Theme
- Follows the site theme in light and dark
- Dependencies
@tabler/icons-reactclsxframer-motiontailwind-merge- Source
- 541 lines, 47 KB in one file
- Install
wensity add social-proof-section-with-logo-carousel --type block- Tags
- light, dark, logos, trust, carousel, infinite
- Last updated


