shadcn.io is not affiliated with official shadcn/ui
Logo Marquee Hero Block for React
A compact hero for a support platform: copy and two calls to action, then two bands across the column: a strip of customer logos that scrolls on its own with a pause button, and a row of three stats.
Installation
Overview
A compact hero with a scrolling strip of customer logos below the calls to action, for React with Base UI. Between solid rails, an announcement pill, a medium-weight headline, a subtitle, a ShineButton as the one primary action and an outline Button sit aligned to the start. Under them two bands run across the column, with + marks where their rules meet the rails: a Marquee of customer wordmarks that fades out at both edges, with a button to pause it, and a row of three stats in tabular figures in cells that share their dividers. Each part fades in once on load with CSS transitions, and nothing moves for visitors who ask for reduced motion. Made for B2B SaaS and enterprise landing pages that want to show a long list of customers without spending the height of a logo grid.
FAQ
How do I replace the wordmarks with real company logos?
Each entry in LOGOS renders an icon and a name. Replace them with an img or an inline svg of the same height (h-6 w-auto keeps each logo's own proportions), and give an img the company's name as its alt. Single-color SVGs that fill with currentColor pick up text-muted-foreground, so they stay quiet and follow the theme in light and dark. Marquee makes the copies that close the loop and hides them from screen readers, so each logo is announced once.
How do I change how fast the logos scroll?
Set speed on Marquee, in pixels per second: this strip uses 30, a calm pace for words, and the default is 50. Because it's a speed and not a duration, adding logos doesn't make the strip run faster. spacing sets the gap between logos (3rem here), and reverse sends them the other way.
How can a visitor stop the moving logos?
Three ways. The button beside the label pauses and resumes the strip: it's a toggle with aria-pressed that drives Marquee's paused prop. The strip also holds while the pointer is over it or focus is inside it. And with reduced motion turned on in the system, the logos stand still in a row that scrolls by hand, and the pause button is hidden, since there's nothing to pause. That covers WCAG's rule for content that moves on its own for more than five seconds.
Is this logo marquee hero accessible for screen readers?
Yes. The page has one h1. The strip is a region named "Customer logos" whose names are real text, read once: the copies that make the loop are aria-hidden and inert, so they're neither read nor reached with Tab. The stats are a description list, so each number is read with its label, and the announcement pill is a single link with its full sentence as its name.
How does the marquee adapt to small screens?
The strip spans the column at every width, and its edges fade through a CSS mask rather than a gradient painted in the background colour, so the fade works on any theme and in dark mode. The headline steps down from text-5xl to text-4xl, the two calls to action wrap when the row runs out of room and sit on the first screen, and the three stats stay on one row down to 320px.
When should I use a scrolling marquee instead of a static logo grid?
Use the marquee when you have ten or more customers to show and want to say "many" without the height of a grid: the motion draws the eye and suggests a long list. Use a static grid, like the logo cloud hero, when you have six to eight well-known names that each deserve a steady look, or when the logos link somewhere.
Related
- Pro
Centered Logo Cloud Hero
Logos and social proofA compact centered hero for a planning tool: an announcement link, two calls to action and a trusted-by band across the column of eight customer wordmarks in cells that share their hairlines.
- Pro
Dual Row Marquee Testimonials Hero
TestimonialsA compact centered hero for a support inbox with a Shine Button and, on its own rule below, two rows of short customer reviews that scroll in opposite directions, with a button to pause them.
- Pro
Centered Trusted By Logo Row Hero
Logos and social proofA compact centered hero built as bands: an announcement pill, a headline, two calls to action and three trust points, then a ruled label and a row of six customer wordmarks in divided cells.
- Pro
Left-Aligned Social Proof Bar Hero
Logos and social proofA compact start-aligned hero closed by a three-cell social proof bar on its own rule: an avatar stack with the user count, a five-star rating with the review count and a compliance mark.
- Pro
Centered Feature Badges Row Hero
Features and tablesA centered showcase hero for a deploy platform: a headline, a Shine Button and a second action, a hairline band of four feature badges and a framed sketch of a production deployment with its build log.
- Pro
Split Integration Flow Hero
Diagrams and mapsA split hero for a metrics pipeline: the headline and a Shine Button beside a divider and a flow diagram in a hairline frame, with a closing band of three proof cells.