Staggered Entrance
List items fade and rise into place one after another with a small delay between each.
AI prompt
Build a list of five rows (icon circle, title and subtitle, each 52px tall in a 300px wide card) and a Replay button. On load and on Replay, every row animates from opacity 0 and translateY(12px) to its place over 360ms cubic-bezier(.2,.7,.2,1), with animation-delay equal to index times 60ms using a CSS custom property --i, and animation-fill-mode backwards so rows are hidden before their turn. To replay, remove the animation class, force a reflow and add it again. The list has aria-busy during the sequence. Cap the delay at 400ms for lists longer than seven items. Under prefers-reduced-motion remove the translate and the stagger and fade all rows together over 120ms.About this pattern
Definition
Elements of a group enter in sequence instead of all at once. Each item starts slightly later than the previous one, which guides the eye down the list.
Purpose & UX principles
- Makes new content feel orderly and shows reading order.
- Keep the delay small (40 to 80ms) and the total under about 500ms, otherwise people wait for the interface.
- Only animate the first screenful; long lists should not stagger beyond the visible items.
Interaction states
- Hidden (before), entering, settled; Replay restarts the sequence.
Motion specification
- Each row animates opacity 0 to 1 and translateY 12px to 0 over 360ms cubic-bezier(.2,.7,.2,1), delayed by index times 60ms.
- Reduced motion: all rows appear at once with a 120ms fade.
Responsive behaviour
- Works with any number of rows; the delay is capped so the last item never waits more than 400ms.
Code
<div class="box">
<ul class="ls" id="ls">
<li style="--i:0"><i></i><span><b>Inbox</b><small>12 new messages</small></span></li>
<li style="--i:1"><i></i><span><b>Drafts</b><small>3 unsent</small></span></li>
<li style="--i:2"><i></i><span><b>Sent</b><small>Today, 09:14</small></span></li>
<li style="--i:3"><i></i><span><b>Archive</b><small>248 items</small></span></li>
<li style="--i:4"><i></i><span><b>Trash</b><small>Empties in 30 days</small></span></li>
</ul>
<button id="re" type="button">Replay</button>
</div>:root{--bg:#F1F1EF;--surface:#fff;--surface-2:#F7F7F5;--line:#E0E0DC;--text:#171717;--muted:#6f6f6f;--accent:#171717;--accent-ink:#fff;--danger:#d92d20}
*{box-sizing:border-box;margin:0}
.box{width:min(300px,100%);display:grid;gap:10px;justify-items:center}
.ls{list-style:none;width:100%;background:var(--surface);border:1px solid var(--line);border-radius:14px;overflow:hidden}
.ls li{display:flex;align-items:center;gap:12px;height:52px;padding:0 14px;border-top:1px solid var(--line)}
.ls li:first-child{border-top:0}
.ls i{width:28px;height:28px;border-radius:50%;background:#dcdcd7;flex:none}
.ls b{display:block;font-size:13.5px;font-weight:600;line-height:1.2}
.ls small{font-size:12px;color:var(--muted)}
.ls.play li{animation:up .36s cubic-bezier(.2,.7,.2,1) backwards;animation-delay:calc(var(--i) * 60ms)}
@keyframes up{from{opacity:0;transform:translateY(12px)}}
#re{height:30px;padding:0 14px;border-radius:99px;border:1px solid var(--line);background:var(--surface);font:inherit;font-size:12.5px;cursor:pointer}
#re:hover{border-color:var(--accent)}
#re:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
@media (prefers-reduced-motion:reduce){.ls.play li{animation:fd .12s backwards;animation-delay:0s}@keyframes fd{from{opacity:0}}}const ls=document.getElementById('ls');
function play(){ls.classList.remove('play');ls.setAttribute('aria-busy','true');void ls.offsetWidth;ls.classList.add('play');setTimeout(()=>ls.removeAttribute('aria-busy'),800);}
document.getElementById('re').addEventListener('click',play);play();One complete HTML file. Save it and open it in a browser.
<!doctype html>
<html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1"><title>Staggered Entrance — demo</title>
<style>
:root{--bg:#F1F1EF;--surface:#fff;--surface-2:#F7F7F5;--line:#E0E0DC;--text:#171717;--muted:#6f6f6f;--accent:#171717;--accent-ink:#fff;--danger:#d92d20}
*{box-sizing:border-box;margin:0}
html,body{height:100%}body{background:var(--bg);color:var(--text);font:15px/1.5 -apple-system,BlinkMacSystemFont,'Segoe UI',Inter,Roboto,sans-serif;-webkit-font-smoothing:antialiased}.stage{min-height:100%;display:grid;place-items:center;padding:24px}button,input,select,textarea{font-family:inherit}@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
.box{width:min(300px,100%);display:grid;gap:10px;justify-items:center}
.ls{list-style:none;width:100%;background:var(--surface);border:1px solid var(--line);border-radius:14px;overflow:hidden}
.ls li{display:flex;align-items:center;gap:12px;height:52px;padding:0 14px;border-top:1px solid var(--line)}
.ls li:first-child{border-top:0}
.ls i{width:28px;height:28px;border-radius:50%;background:#dcdcd7;flex:none}
.ls b{display:block;font-size:13.5px;font-weight:600;line-height:1.2}
.ls small{font-size:12px;color:var(--muted)}
.ls.play li{animation:up .36s cubic-bezier(.2,.7,.2,1) backwards;animation-delay:calc(var(--i) * 60ms)}
@keyframes up{from{opacity:0;transform:translateY(12px)}}
#re{height:30px;padding:0 14px;border-radius:99px;border:1px solid var(--line);background:var(--surface);font:inherit;font-size:12.5px;cursor:pointer}
#re:hover{border-color:var(--accent)}
#re:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
@media (prefers-reduced-motion:reduce){.ls.play li{animation:fd .12s backwards;animation-delay:0s}@keyframes fd{from{opacity:0}}}
</style></head>
<body><div class="stage">
<div class="box">
<ul class="ls" id="ls">
<li style="--i:0"><i></i><span><b>Inbox</b><small>12 new messages</small></span></li>
<li style="--i:1"><i></i><span><b>Drafts</b><small>3 unsent</small></span></li>
<li style="--i:2"><i></i><span><b>Sent</b><small>Today, 09:14</small></span></li>
<li style="--i:3"><i></i><span><b>Archive</b><small>248 items</small></span></li>
<li style="--i:4"><i></i><span><b>Trash</b><small>Empties in 30 days</small></span></li>
</ul>
<button id="re" type="button">Replay</button>
</div>
</div>
<script>
const ls=document.getElementById('ls');
function play(){ls.classList.remove('play');ls.setAttribute('aria-busy','true');void ls.offsetWidth;ls.classList.add('play');setTimeout(()=>ls.removeAttribute('aria-busy'),800);}
document.getElementById('re').addEventListener('click',play);play();
</script>
</body></html>