Trusted by teams at
MeridianNorthwindHalcyonQuartzLumenFathomKestrel

Code

<!-- glass-marquee.free.js: download it from the Install section below and host it with your site -->
<script src="/glass-marquee.free.js" defer></script>

<glass-marquee speed="40" gap="52" fade="110" theme="light" aria-label="Trusted by">
  <img src="/logos/meridian.svg" alt="Meridian Labs" height="24">
  <img src="/logos/northwind.svg" alt="Northwind" height="24">
  <img src="/logos/halcyon.svg" alt="Halcyon" height="24">
  <img src="/logos/quartz.svg" alt="Quartz" height="24">
</glass-marquee>

In context

Design systemsMotionAccessibilityDark modeWeb ComponentsReactTypeScript
Design systemsMotionAccessibilityDark modeWeb ComponentsReactTypeScript
Tags, two rows
It replaced three libraries in our stack, and the bundle got smaller.
Mira Okafor · Meridian Labs
The first component set our whole team agreed on in one meeting.
Jonas Reuter · Northwind
We shipped the new pricing page in a day. The details did the selling.
Aiko Tanabe · Halcyon
Dark mode worked the moment we switched it on. That never happens.
Tomás Rivera · Quartz
Mint, quotes Pro

Install · Free Web Component

One file, no dependencies. Aurora preset, every other option included. Host it yourself so your visitors never load anything from our servers.

1. Install with one command — or download the file
shadcn CLI · React
npx shadcn@latest add https://www.ui-design.co/r/glass-marquee.json
2. Load it and use the element
HTML
<!-- glass-marquee.free.js: download it from the Install section below and host it with your site -->
<script src="/glass-marquee.free.js" defer></script>

<glass-marquee speed="40" gap="48" fade="96" theme="light" aria-label="Trusted by">
  <img src="/logos/meridian.svg" alt="Meridian Labs" height="24">
  <img src="/logos/northwind.svg" alt="Northwind" height="24">
  <img src="/logos/halcyon.svg" alt="Halcyon" height="24">
  <img src="/logos/quartz.svg" alt="Quartz" height="24">
</glass-marquee>
3. React + TypeScript (optional)

The shadcn command adds a typed React wrapper for you. Using the file directly? Custom elements work in React as-is; for type checking add:

TypeScript
// glass-marquee.d.ts
declare namespace JSX {
  interface IntrinsicElements {
    'glass-marquee': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & {
      speed?: number | string;
      direction?: 'left' | 'right';
      gap?: number | string;
      fade?: number | string;
      'pause-on-hover'?: 'slow' | 'stop' | 'none';
      drag?: 'true' | 'false';
      theme?: 'light' | 'dark';
    };
  }
}

Pro · React + TypeScript Pro

One payment of $4.99, yours forever. Use it in unlimited personal and commercial projects; no resale.

  • React component with TypeScript types and the full source — items are ordinary children
  • Sunset, Mint and Mono tints for the light caught in the glass, plus custom tints from Brand Fit
  • The vanilla Web Component with every tint, a demo page, README and license

Attributes & props

NameTypeDefaultDescription
children elements—Each child is one item: an image, a card, a tag. They repeat as often as needed to fill the width; the copies are hidden from screen readers and from Tab.
speed number (px/s)40Cruise speed. The row always returns to it after a hover, a flick or a push.
direction 'left' | 'right''left'Which way the row travels.
gap number (px)48Space between items.
fade number (px)96Width of each soft end, where items fade and blur. 0 turns it off.
pause-on-hover 'slow' | 'stop' | 'none''slow'Under the pointer the row eases down to a drift, eases to a stop, or carries on.
drag 'true' | 'false''true'Grab the row and flick it; it coasts and settles back to its cruise speed. Links inside still work on a plain click.
theme 'light' | 'dark''light'White or dark glass at the ends.
tint Pro'aurora' | 'sunset' | 'mint' | 'mono' | object'aurora'The faint colour caught in the glass ends, or a custom tint. Free build ships Aurora only.

The glass blurs what is behind it, so the effect is the same on any background — a photo, a gradient or a flat colour — and there is nothing to colour-match. Items are measured with a ResizeObserver and re-cloned when they change; one animation frame moves one transform, and it stops while the row is off-screen or the tab is hidden. Keyboard focus stops the row and brings the focused item to the middle. Scrolling the page gives the row a short push. With reduced motion it becomes a still row you can scroll sideways. Add an aria-label to name the row.

More components