Marquee
A strip that scrolls by forever: a band of bold words across a landing page, a row of logos or reviews. It pauses when hovered or focused, and stands still for readers who prefer less motion.
Band
.marquee-band: big words on a dark strip. Tilt it with -rotate-1 for extra attitude.
Bold
Flat
Fast
Accessible
Yours
<div class="py-6 overflow-hidden">
<div class="marquee marquee-band -rotate-1">
<div class="marquee-track">
<span>Bold <i class="mi mi-asterisk" aria-hidden="true"></i></span>
<span>Flat <i class="mi mi-asterisk" aria-hidden="true"></i></span>
<span>Fast <i class="mi mi-asterisk" aria-hidden="true"></i></span>
<span>Accessible <i class="mi mi-asterisk" aria-hidden="true"></i></span>
<span>Yours <i class="mi mi-asterisk" aria-hidden="true"></i></span>
</div>
</div>
</div>Cards, fading at the edges
Anything can go in the track. .marquee-fade fades the ends, .marquee-reverse runs the other way, .marquee-slow and -fast change the speed.
We shipped our site in a weekend.
Dark mode just worked.
Bold without being loud.
The keyboard support is real.
<div class="marquee marquee-fade marquee-reverse marquee-slow">
<div class="marquee-track">
<figure class="testimonial m-0 w-72"><blockquote><p>We shipped our site in a weekend.</p></blockquote><figcaption><b>Ana M.</b></figcaption></figure>
<figure class="testimonial m-0 w-72"><blockquote><p>Dark mode just worked.</p></blockquote><figcaption><b>Leo K.</b></figcaption></figure>
<figure class="testimonial m-0 w-72"><blockquote><p>Bold without being loud.</p></blockquote><figcaption><b>Sade O.</b></figcaption></figure>
<figure class="testimonial m-0 w-72"><blockquote><p>The keyboard support is real.</p></blockquote><figcaption><b>Yara H.</b></figcaption></figure>
</div>
</div>Classes
| Class | Does |
|---|---|
.marquee + .marquee-track | The strip and its content. Momo adds a hidden copy of the track so it loops without a gap. |
.marquee-band | Big bold words on a dark strip |
.marquee-fade / -reverse | Faded ends / the other direction |
.marquee-slow / -fast (or --marquee-speed) | 60s / 15s per loop (30s by default) |
.marquee-no-pause | Don't pause on hover |
The logo cloud's scrolling strip works the same way.