How it works
This slide up animation brings a list of items into view from below, one after another. Each card starts a little lower and invisible, then rises and fades in. The stagger gives a sense of order that a single block moving at once does not have.
The up keyframe goes from opacity 0 and translateY(Distance px) to opacity 1 and translateY(0). All three demo items use it with a delay of their index times Stagger, a single iteration and fill-mode both, so items waiting for their turn stay hidden at the start position instead of flashing in place first.
It is the default entrance for feature lists, search results, notification stacks, pricing cards and dashboard widgets after data loads. Parameters: Width, Distance, Duration, Stagger and Easing. Short distances (16 to 32px) feel refined; 80px and more looks theatrical. Keep total stagger time under about half a second: with 10 items, a 0.05s stagger works, while 0.12s would make the last item wait over a second. The default expo-out makes each card arrive fast and ease into place.
Transform and opacity are the two properties browsers animate on the compositor, so even long lists stay smooth. For prefers-reduced-motion, keep the fade and drop the translate. For a slide down animation, use a negative distance so items drop into place from above.
How do I make a slide down animation instead?
Use a negative translateY at the start. In the copied CSS change translateY(24px) in the 0% step to translateY(-24px), and the items will drop into place from above. The rest stays the same. Slide down suits dropdown menus and notifications arriving from the top of the screen.
How do I stagger a list with a dynamic number of items?
Set the delay with a CSS variable: give each item style="--i: 0", "--i: 1" and so on from your template loop, and use animation-delay: calc(var(--i) * 0.12s). In the React version the items are rendered with map and the delay is already written as index times stagger, so it adapts to any array length.
Can I trigger the slide up when the list scrolls into view?
Yes. Keep the animation paused or unapplied until the container gets a class, then add the class with an IntersectionObserver, as the Reveal on scroll preset does. In React, wrap the items in a parent with whileInView and pass the stagger through Motion variants so children animate in order.