Transitions
How things move in Moey — and entrance animations for landing pages and heroes. Everything respects people who ask their device for less motion.
Moey's motion
Small things (hovers, colors, switches) use --mo-duration (.15s) and --mo-ease. Bigger ones — menus, dialogs, sheets — have their own, quick to start and soft to land. Change them in Options; the transition utilities use them too.
Entrance animations
For heroes and landing sections: things arrive instead of popping in. Press replay.
<h1 class="animate-fade-up">Run your shop from one place</h1>
<p class="animate-fade-up delay-150">Orders, customers and payments together.</p>
<a class="btn btn-default btn-solid animate-zoom-in delay-300" href="/start">Get started</a>
One after another: stagger
Put stagger on the parent and each child waits a little longer than the one before.
<div class="grid md:grid-cols-4 gap-3 stagger">
<div class="animate-fade-up">…</div>
<div class="animate-fade-up">…</div>
…
</div>
When it scrolls into view
data-moey-animate waits until the element is on screen, then plays once. On a stagger parent, its children arrive one by one. Scroll down to these:
<section data-moey-animate="fade-up">…</section>
<div class="grid md:grid-cols-3 gap-3 stagger" data-moey-animate="zoom-in">
<div class="card">…</div>
…
</div>
Without JavaScript, when printing, and for people who turn on "reduce motion", everything is simply shown — content is never stuck invisible.
| Class / attribute | What it does |
|---|---|
animate-fade-in · animate-fade-up · animate-fade-down · animate-fade-start · animate-fade-end · animate-zoom-in · animate-slide-up | plays once when the page loads |
delay-75 · delay-150 · delay-300 · delay-500 · delay-700 · delay-1000 | wait before playing |
stagger | children play one after another (--mo-stagger, 80ms) |
data-moey-animate="fade-up" (any of the names) | plays when scrolled into view, once |
--mo-enter-duration · --mo-enter-ease | how long, which curve (.6s, soft) |