Not published yet

I Deleted a Card and the Stagger Never Replayed

One line of CSS replaces your nth-child delay ladder. The part nobody shows is the moment after you delete a card — the delays recompute correctly, but the animation never replays.

Publishing tomorrow morning · December 2, 2026
I Deleted a Card and the Stagger Never Replayed

The hand-typed ‘nth-child’ delay ladder that staggers a card grid breaks the moment you add or delete a card. ‘sibling-index()’ replaces the whole block with one line that numbers each element by its own position — and then the real lesson lands: after you delete a card, CSS recomputes every delay correctly, but the animation is a movie that already played, so nothing replays. This shows the measured proof (a 16px staircase, on Chromium 141), the one-line ‘getAnimations({subtree:true})’ restart that rewinds the clocks, and the state-versus-motion rule you carry to everything else: colours and positions self-heal; animations need a nudge.

I Deleted a Card and the Stagger Never Replayed | Vibecodes