Marquee Ticker

Infinite scrolling logo/text ticker, pure CSS.

Acme Globex Initech Umbrella Hooli Acme Globex Initech Umbrella Hooli
Tailwind CSS
<div class="overflow-hidden py-4 border-y border-slate-200">
  <div class="marquee-track flex gap-12 w-max">
    <span class="text-lg font-bold text-slate-400">Acme</span>
    <span class="text-lg font-bold text-slate-400">Globex</span>
    <span class="text-lg font-bold text-slate-400">Initech</span>
    <span class="text-lg font-bold text-slate-400">Umbrella</span>
    <span class="text-lg font-bold text-slate-400">Hooli</span>
    <span class="text-lg font-bold text-slate-400">Acme</span>
    <span class="text-lg font-bold text-slate-400">Globex</span>
    <span class="text-lg font-bold text-slate-400">Initech</span>
    <span class="text-lg font-bold text-slate-400">Umbrella</span>
    <span class="text-lg font-bold text-slate-400">Hooli</span>
  </div>
</div>
<style>
@keyframes marquee-x {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.marquee-track { animation: marquee-x 22s linear infinite; }
.marquee-track:hover { animation-play-state: paused; }
</style>

Free to use in personal and commercial projects. No attribution required.

Variants

Same component, different looks. Preview each one live and copy the code you like.

Dark strip

The dark strip works as a bold divider between light sections.

Acme Globex Initech Umbrella Hooli Acme Globex Initech Umbrella Hooli
Tailwind CSS

Fast

Speed it up for energetic sale or launch announcements.

Acme Globex Initech Umbrella Hooli Acme Globex Initech Umbrella Hooli
Tailwind CSS

Reverse

Reverse the direction when stacking two tickers for a mirrored effect.

Acme Globex Initech Umbrella Hooli Acme Globex Initech Umbrella Hooli
Tailwind CSS

About this marquee ticker

The infinite marquee is the dominant agency pattern of the last few years: a strip of logos, words, or images scrolling endlessly across the page. You see css marquee animation on portfolio sites, SaaS landing pages ("trusted by" logo strips), and announcement tickers. It adds motion and social proof in one element.

The trick is duplication. The track contains two copies of the content and animates translateX from 0 to -50%. When the first copy scrolls out, the second copy is exactly where the first started, so the loop is seamless. The w-max class keeps the track from wrapping.

This snippet pauses on hover, which is good UX for logo strips where visitors might want to read a name. For a ticker with clickable items, wrap each span in an anchor tag. Keep the speed moderate: 20 to 30 seconds per loop feels calm, under 15 feels frantic.

Logo strips and announcement tickers need motion to feel alive, but carousels demand interaction and static rows feel dead. The marquee fills the gap: continuous, passive motion that the eye catches while scrolling, delivering social proof (trusted by these logos) with zero interaction cost. It is the rare animation that adds energy without asking the visitor to do anything.

The trick is duplication. The track is a flex container with gap-12 and w-max holding two identical copies of the content. The marquee-x keyframes animate translateX from 0 to -50%; because the copies are identical, the -50% position looks exactly like 0%, so the loop has no visible seam. The wrapper's overflow-hidden clips everything outside the viewport, and w-max stops the track from wrapping.

Set the loop duration to the content: 22 seconds feels calm for logo strips, 12 to 15 for news tickers. The gap between the two copies must exactly match the internal gaps or a jump appears at the loop point. Soften the edges with a mask-image gradient fade so logos dissolve in rather than popping at the boundary. A second row with animation-direction: reverse adds depth for footers.

The performance mistake is animating position properties like left or margin instead of transform, which forces layout recalculation every frame and stutters on mobile. TranslateX is compositor-friendly: the browser moves pixels without reflowing the page. If a marquee janks, the first thing to check is whether the animation touches transform only.

Where to use it

  • ✓ Client logo strips
  • ✓ Announcement tickers
  • ✓ Portfolio skill lists
  • ✓ Testimonial carousels

Customization tips

Duplicate your content exactly twice for a seamless loop. Adjust the 22s duration: slower for logos, faster for tickers. For opposite-direction rows, add a second track with animation-direction: reverse.

Design notes

When to use

Use it for client logo strips, announcement tickers, and portfolio skill lists where endless motion adds energy and social proof. The duplicated track loops without a visible jump. Pausing on hover lets visitors actually read a logo name.

What to avoid

Do not put important content only inside the marquee; text moving at ticker speed is hard to read and easy to miss. Do not run it so fast that the words blur, especially for announcements.

Accessibility

Hide the duplicated copy from screen readers with aria-hidden so the content is not announced twice. Respect prefers-reduced-motion by pausing the animation, and keep the pause-on-hover behavior.

Frequently asked questions

How do I make a seamless infinite marquee in CSS?

Duplicate the content twice inside a w-max track, then animate translateX from 0 to -50%. The -50% point aligns the second copy exactly where the first started, creating a perfect loop.

Why does my marquee have a gap or jump?

The two copies must be identical, including gaps. Use gap on the flex container (not margins on items) so spacing is consistent between the end of copy one and the start of copy two.

Can I pause a marquee on hover?

Yes, with animation-play-state: paused on hover. It is good practice for logo strips so visitors can read names.

How do I change the speed of a CSS marquee?

Speed is controlled by the animation-duration on the marquee track. A longer duration means a slower scroll. For consistent speed regardless of content length, set the duration proportional to the track width, for example with a CSS variable you compute in JavaScript after measuring.

How do I make a vertical marquee ticker?

Use the same duplicated-content technique but stack items in a column and animate translateY from 0 to -50% instead of translateX. Set a fixed height with overflow hidden on the wrapper. Pause on hover works the same way with animation-play-state.

Why does my marquee stutter on mobile?

Stutter usually comes from animating layout properties like left or margin instead of transform. Always animate translateX on the track, which runs on the compositor. Also avoid animating the width of items inside the track and keep images at fixed dimensions so nothing reflows mid-loop.