Sections
Marquee
A row that keeps gliding by — the logos of your customers, testimonials, news. It never shows a gap, moves at the same pace on any screen, and stops when you point at it, focus it, or press its pause button. People who prefer less motion get a still row they can scroll.
- Greenleaf
- Northpeak
- Bluewave
- Sunday Co.
- Lightfoot
- Hexa Labs
- Bean & Co.
<div class="marquee" id="mq-logos" data-moey-marquee aria-label="Shops using Moey">
<ul class="marquee-group">
<li class="flex items-center gap-2 text-lg font-semibold text-muted"><i class="mi mi-leaf"></i>Greenleaf</li>
<li class="flex items-center gap-2 text-lg font-semibold text-muted"><i class="mi mi-mountain"></i>Northpeak</li>
<li class="flex items-center gap-2 text-lg font-semibold text-muted"><i class="mi mi-waves"></i>Bluewave</li>
<li class="flex items-center gap-2 text-lg font-semibold text-muted"><i class="mi mi-sun"></i>Sunday Co.</li>
<li class="flex items-center gap-2 text-lg font-semibold text-muted"><i class="mi mi-feather"></i>Lightfoot</li>
<li class="flex items-center gap-2 text-lg font-semibold text-muted"><i class="mi mi-hexagon"></i>Hexa Labs</li>
<li class="flex items-center gap-2 text-lg font-semibold text-muted"><i class="mi mi-coffee"></i>Bean & Co.</li>
</ul>
</div>
Add one, step by step
- Write the items once in a
<ul class="marquee-group">— logos, cards, text, anything. - Wrap it in
<div class="marquee" data-moey-marquee aria-label="…">. The label names the region for screen readers. - That's it: Moey repeats the items to fill the width (the copies are hidden from screen readers and can't be tabbed to), works out the timing, and adds a small pause button — moving content must be stoppable.
- Tune it with
data-moey-speed(pixels per second, 40 by default),.marquee-reverse, and--mo-marquee-gap/--mo-marquee-fade.
Cards, the other way
Slower (data-moey-speed="25") and from left to right (.marquee-reverse) — quotes need time to be read.
“Set up our store admin in a weekend.”
AKAna Kim“Feels like a native app on my phone.”
MRMarco Rossi“The data table alone saved us weeks.”
LFLena Fischer“Clean, fast, and easy to theme.”
SOSam Okafor
<div class="marquee marquee-reverse" data-moey-marquee data-moey-speed="25" aria-label="What people say">
<ul class="marquee-group">
<li class="card w-72"><div class="card-body stack gap-2"><p class="m-0">“Set up our store admin in a weekend.”</p><div class="flex items-center gap-2 text-sm text-muted"><span class="avatar avatar-sm">AK</span>Ana Kim</div></div></li>
<li class="card w-72"><div class="card-body stack gap-2"><p class="m-0">“Feels like a native app on my phone.”</p><div class="flex items-center gap-2 text-sm text-muted"><span class="avatar avatar-sm">MR</span>Marco Rossi</div></div></li>
<li class="card w-72"><div class="card-body stack gap-2"><p class="m-0">“The data table alone saved us weeks.”</p><div class="flex items-center gap-2 text-sm text-muted"><span class="avatar avatar-sm">LF</span>Lena Fischer</div></div></li>
<li class="card w-72"><div class="card-body stack gap-2"><p class="m-0">“Clean, fast, and easy to theme.”</p><div class="flex items-center gap-2 text-sm text-muted"><span class="avatar avatar-sm">SO</span>Sam Okafor</div></div></li>
</ul>
</div>
A news ticker
In a painted strip (theme-default-solid), a little faster.
- New Holiday sale: 20% off everything until Sunday
- Shipping Free delivery on orders over $50
- Stores Now open in Lisbon and Berlin
<div class="marquee theme-default-solid rounded-lg py-2" data-moey-marquee data-moey-speed="60" aria-label="News">
<ul class="marquee-group text-sm">
<li><span class="badge">New</span> Holiday sale: 20% off everything until Sunday</li>
<li><span class="badge">Shipping</span> Free delivery on orders over $50</li>
<li><span class="badge">Stores</span> Now open in Lisbon and Berlin</li>
</ul>
</div>
Vertical
.marquee-vertical scrolls upward — give it a height. Good for a live feed in a dashboard card.
Live orders
- Ana · Linen tote$29
- Marco · Wallet$59
- Lena · Beanie$24
- Sam · 2 shirts$98
- Priya · Canvas bag$24
<div class="card">
<div class="card-body">
<div class="font-semibold mb-2">Live orders</div>
<div class="marquee marquee-vertical h-64" data-moey-marquee data-moey-speed="20" aria-label="Latest orders">
<ul class="marquee-group w-full">
<li class="flex justify-between gap-2 py-2 text-sm"><span>Ana · Linen tote</span><b>$29</b></li>
<li class="flex justify-between gap-2 py-2 text-sm"><span>Marco · Wallet</span><b>$59</b></li>
<li class="flex justify-between gap-2 py-2 text-sm"><span>Lena · Beanie</span><b>$24</b></li>
<li class="flex justify-between gap-2 py-2 text-sm"><span>Sam · 2 shirts</span><b>$98</b></li>
<li class="flex justify-between gap-2 py-2 text-sm"><span>Priya · Canvas bag</span><b>$24</b></li>
</ul>
</div>
</div>
</div>
Accessible by design
- Screen readers read the items once — the copies are
aria-hiddenandinert. - Pointing at it or tabbing into it pauses it; the pause button stops it for good (WCAG 2.2.2).
- With "reduce motion" on, it doesn't move at all: a still row you can scroll yourself.
- It stops while it's off screen, and flows the other way in right-to-left languages.
Reference
| Class / attribute | What it does |
|---|---|
.marquee[data-moey-marquee] + .marquee-group | The moving strip and the items to repeat |
data-moey-speed="40" | Pixels per second (the same pace on any width) |
.marquee-reverse · .marquee-vertical | The other way · upward (needs a height) |
data-moey-pause="false" | No pause button (only if your page offers another way to stop it) |
--mo-marquee-gap · --mo-marquee-fade | Space between items (2.5rem) · the soft fade at the edges (3rem; 0 for none) |
Moey.marquee(el) | { pause(), play(), refresh() } (refresh after changing the items) |