Logo Marquee

An infinite scrolling logo strip in pure CSS, with faded edges and reduced-motion support.

ThemeMode
Theme tokens add once per site, shared by every block
:root {
  color-scheme: light dark;
  --color-primary: light-dark(#18181b, #fafafa);
  --color-accent: light-dark(#4f46e5, #818cf8);
  --color-bg: light-dark(#ffffff, #0b0b0d);
  --color-surface: light-dark(#f7f7f8, #161619);
  --color-text: light-dark(#0a0a0c, #f5f5f6);
  --color-text-muted: light-dark(#52525b, #a1a1aa);
  --color-border: light-dark(#e4e4e7, #26262b);
  --font-heading: 'Inter', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.375rem;
  --text-2xl: 1.75rem;
  --text-3xl: 2.375rem;
  --text-4xl: 3.5rem;
  --weight-normal: 400;
  --weight-medium: 500;
  --weight-bold: 700;
  --leading-tight: 1.1;
  --leading-normal: 1.6;
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 2rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;
  --space-3xl: 8rem;
  --radius: 0.625rem;
  --shadow: 0 1px 2px rgb(10 10 12 / 0.05), 0 4px 12px rgb(10 10 12 / 0.06), 0 16px 40px rgb(10 10 12 / 0.06);
  --container-width: 1120px;
}
Theme tokens add once per site, shared by every block
:root {
  color-scheme: light dark;
  --color-primary: light-dark(#4f46e5, #818cf8);
  --color-accent: light-dark(#a855f7, #c084fc);
  --color-bg: light-dark(#ffffff, #0c0c18);
  --color-surface: light-dark(#f5f5ff, #16162b);
  --color-text: light-dark(#111127, #ececf6);
  --color-text-muted: light-dark(#5a5a72, #9d9dbd);
  --color-border: light-dark(#e4e4f2, #28284a);
  --font-heading: 'Inter', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.375rem;
  --text-2xl: 1.75rem;
  --text-3xl: 2.375rem;
  --text-4xl: 3.5rem;
  --weight-normal: 400;
  --weight-medium: 500;
  --weight-bold: 700;
  --leading-tight: 1.1;
  --leading-normal: 1.6;
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 2rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;
  --space-3xl: 8rem;
  --radius: 0.75rem;
  --shadow: 0 1px 2px rgb(79 70 229 / 0.06), 0 6px 16px rgb(79 70 229 / 0.10), 0 20px 48px rgb(79 70 229 / 0.10);
  --container-width: 1120px;
}
Theme tokens add once per site, shared by every block
:root {
  color-scheme: light dark;
  --color-primary: light-dark(#0d9488, #2dd4bf);
  --color-accent: light-dark(#f97316, #fb923c);
  --color-bg: light-dark(#fbfaf8, #171412);
  --color-surface: light-dark(#f3f0ea, #221e1a);
  --color-text: light-dark(#292524, #ece7e0);
  --color-text-muted: light-dark(#6b6560, #a8a099);
  --color-border: light-dark(#e5dfd6, #37312a);
  --font-heading: Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.375rem;
  --text-2xl: 1.75rem;
  --text-3xl: 2.375rem;
  --text-4xl: 3.5rem;
  --weight-normal: 400;
  --weight-medium: 500;
  --weight-bold: 700;
  --leading-tight: 1.15;
  --leading-normal: 1.6;
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 2rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;
  --space-3xl: 8rem;
  --radius: 1rem;
  --shadow: 0 2px 6px rgb(90 75 60 / 0.06), 0 10px 28px rgb(90 75 60 / 0.10);
  --container-width: 1120px;
}
HTML
<section class="s-logo-marquee-scroll">
  <div class="lm-inner">
    <p class="lm-caption">Trusted by teams everywhere</p>
    <div class="lm-viewport">
      <div class="lm-track">
        <span>Northwind</span><span>Acme</span><span>Globex</span><span>Umbra</span><span>Initech</span><span>Soylent</span><span>Hooli</span><span>Vehement</span>
        <span aria-hidden="true">Northwind</span><span aria-hidden="true">Acme</span><span aria-hidden="true">Globex</span><span aria-hidden="true">Umbra</span><span aria-hidden="true">Initech</span><span aria-hidden="true">Soylent</span><span aria-hidden="true">Hooli</span><span aria-hidden="true">Vehement</span>
      </div>
    </div>
  </div>
</section>
CSS block only, works with any theme's tokens
.s-logo-marquee-scroll {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  padding-block: var(--space-xl);
}
.s-logo-marquee-scroll .lm-inner {
  max-width: var(--container-width);
  margin-inline: auto;
  padding-inline: var(--space-lg);
}
.s-logo-marquee-scroll .lm-caption {
  text-align: center;
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 var(--space-lg);
}
.s-logo-marquee-scroll .lm-viewport {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, black 12%, black 88%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, black 12%, black 88%, transparent);
}
.s-logo-marquee-scroll .lm-track {
  display: flex;
  gap: var(--space-2xl);
  width: max-content;
  animation: s-logo-marquee-slide 28s linear infinite;
}
.s-logo-marquee-scroll .lm-viewport:hover .lm-track {
  animation-play-state: paused;
}
.s-logo-marquee-scroll .lm-track span {
  font-family: var(--font-heading);
  text-wrap: balance;
  font-size: var(--text-xl);
  font-weight: var(--weight-bold);
  letter-spacing: -0.01em;
  color: var(--color-text-muted);
  opacity: 0.6;
  white-space: nowrap;
  transition: opacity 0.2s ease, color 0.2s ease;
}
.s-logo-marquee-scroll .lm-track span:hover {
  opacity: 1;
  color: var(--color-text);
}
@keyframes s-logo-marquee-slide {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(calc(-50% - var(--space-2xl) / 2));
  }
}
@media (prefers-reduced-motion: reduce) {
  .s-logo-marquee-scroll .lm-track {
    animation: none;
    flex-wrap: wrap;
    width: auto;
    justify-content: center;
  }
}

Uses mask-image as a progressive enhancement — degrades gracefully in browsers without it.

Plus universally supported features: logical properties, custom properties. Baseline status is pulled from each feature's reference snippet.

ESC