CSS techniques

Infinite logo scroller in pure CSS (no plugin)

An endlessly scrolling row of client logos needs no slider plugin. Here is the duplicate-list trick that makes a CSS marquee seamless, with pause on hover, faded edges and accessible fallbacks.

To make an infinite logo scroller in pure CSS, put two identical copies of the logo list side by side in a track, then animate the track with transform: translateX(-50%) on a linear, infinite loop. When the first copy has scrolled out of view, the second sits exactly where the first began, so the reset is invisible. No JavaScript or slider plugin is needed, and the logo marquee generator writes the code for you, including pause on hover, faded edges and reduced-motion support.

Key takeaways

  • Duplicate the list, animate the track by exactly half its width, and the loop is seamless.
  • Animate transform, not left or margin, so the browser can run it smoothly on the graphics card.
  • Hide the duplicate list from screen readers with aria-hidden="true".
  • Respect prefers-reduced-motion, and give people a way to pause the movement.

How does a seamless CSS marquee work?

The trick is in the maths. If the track contains the list twice, it is twice as wide as one list. Moving it left by 50% moves it by exactly one list’s width. At the end of each cycle, the second copy is in the same position the first copy started in, so when the animation jumps back to the start, nothing appears to change.

For that to hold, both halves must be identical, including the gap after the last item. That is why the code below uses padding on each list equal to the gap between items.

The HTML and CSS

<div class="marquee">
  <div class="marquee__track">
    <ul class="marquee__list">
      <li><img src="acme.svg" alt="Acme" width="120" height="40"></li>
      <li><img src="nova.svg" alt="Nova" width="120" height="40"></li>
      <li><img src="orbit.svg" alt="Orbit" width="120" height="40"></li>
    </ul>
    <ul class="marquee__list" aria-hidden="true">
      <li><img src="acme.svg" alt="" width="120" height="40"></li>
      <li><img src="nova.svg" alt="" width="120" height="40"></li>
      <li><img src="orbit.svg" alt="" width="120" height="40"></li>
    </ul>
  </div>
</div>
.marquee {
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
}

.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee 30s linear infinite;
}

.marquee__list {
  display: flex;
  gap: 3rem;
  padding: 0 3rem 0 0; /* same as the gap, so both halves match */
  margin: 0;
  list-style: none;
}

.marquee:hover .marquee__track { animation-play-state: paused; }

@keyframes marquee {
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .marquee__track { animation: none; width: auto; }
  .marquee__list { flex-wrap: wrap; justify-content: center; }
  .marquee__list[aria-hidden="true"] { display: none; }
}

What each part does

  • width: max-content stops the track from shrinking to the container, so it stays as wide as both lists.
  • mask-image fades the edges so logos ease in and out instead of being cut off. It is optional.
  • animation-play-state: paused stops the scroll while the pointer is over it, so people can read or click a logo.
  • The reduced-motion block shows one still, wrapping row of logos for people who have turned off animations in their system settings.

How do you reverse the direction or make a text ticker?

To scroll from left to right, keep the same keyframes and add animation-direction: reverse to the track. For a ticker of headlines or keywords, replace the images with text items; the maths is identical. Two rows moving in opposite directions at slightly different speeds make a popular variation for testimonials or tags:

.marquee--reverse .marquee__track {
  animation-direction: reverse;
  animation-duration: 40s;
}

How fast should a logo marquee scroll?

Speed is the duration of one loop divided by the width of one list. A long list at 30 seconds can feel the same as a short list at 15. Aim for a slow, readable drift: if you can’t read a logo name before it leaves the screen, it is too fast. Six to twelve logos is typical. With fewer, increase the gap so a single list is still wider than the screen; otherwise a gap appears before the second copy arrives.

Is a scrolling marquee accessible?

It can be, with care. WCAG 2.2 success criterion 2.2.2 (Pause, Stop, Hide) says moving content that starts automatically, lasts more than five seconds and sits alongside other content needs a way to pause, stop or hide it. Pausing on hover helps mouse users, but not people on touch screens or using a keyboard.

  • Add a pause button that toggles animation-play-state if the marquee is prominent or runs for a long time.
  • Respect reduced motion, as in the CSS above.
  • Hide the duplicate with aria-hidden="true" and empty alt text, so each name is read once.
  • Give real alt text to the first copy: the company name, not “logo”.

Avoid: Don’t use the old <marquee> HTML element. It is obsolete, can’t be paused accessibly, and its behaviour varies between browsers. CSS animation does the same job properly.

Using it in Elementor, Divi and other page builders

Because the marquee needs its own HTML, the generator outputs one snippet for your builder’s HTML or Code widget. Pick your builder from “Paste into” for the exact steps, then replace the image paths with your own logo files. Upload SVG logos where possible, run them through the SVG optimiser, and keep them all the same height so the row looks even. Greyscale logos, with colour on hover, help a mixed set look consistent; the generator has that option built in.

Build yours

Open the logo marquee generator, list your client names, set the loop duration, gap and direction, and copy the code. It also builds text tickers for headlines or keywords. For other movement on the page, see scroll-driven animations in CSS.

Last checked: October 2026.

Sources: W3C: Understanding SC 2.2.2 Pause, Stop, Hide, MDN: animation-play-state, MDN: <marquee> (obsolete).