Presets

Slide up animation

A stack of cards rising into place one after another as they fade in.

CSSTailwindReactGIFMP4
Item 1 Item 2 Item 3
00.000 / 0.700s
timing
style

npm i motion · the component uses motion/react

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.

relatedMore like this

all entrance →
Hello, I faded in.
01 Fade in once
Sliding in.
02 Slide in once
I appear when scrolled into view.
03 Reveal on scroll inview
04 Rotate 360° loop
05 Dual ring loop
06 Animated arrow loop

Export

format
height

480p max · small watermark · 3 per day · remove limits