Presets

Entrance animations

4 presets. Open one to tune it and copy the code.

Hello, I faded in.
01 Fade in once
Item 1 Item 2 Item 3
02 Slide up once
Sliding in.
03 Slide in once
I appear when scrolled into view.
04 Reveal on scroll inview

Entrance animations control how content arrives on screen, which shapes how a page feels more than almost any other motion. This set covers the four you will use most. Fade in brings an element from transparent to visible, optionally sharpening it out of a blur. Slide up raises a list of cards into place one after another with a stagger. Slide in glides a panel in from the left or right edge. Reveal on scroll rises and fades a section in the first time it enters the viewport.

All four play once with fill-mode both, so elements stay hidden during their delay and keep their final state afterwards. They animate transform, opacity and (for the blur) filter.

Copy them as CSS (the scroll version includes a small IntersectionObserver snippet), as Tailwind classes, or as React components using Motion, where scroll reveal becomes whileInView.

When should content animate in, and when should it just appear?

Animate entrances when they explain something: a list loading in order, a panel arriving from the edge it belongs to, a section introducing itself as the user scrolls. Skip them for content users need immediately, like form errors or search results they are scanning, and never delay important text by more than a few hundred milliseconds.

How do I animate elements when they scroll into view?

Use the Reveal on scroll preset. In the CSS output, an IntersectionObserver adds an is-inview class when the element is 20% visible, which starts the keyframe once. In React, Motion's whileInView handles it. Avoid hiding content without JavaScript as a fallback, or it stays invisible if the script fails.

What distance and duration work best for entrances?

Short distances look more refined: 16 to 40px for slide up and scroll reveal, a bit more for slide in panels. Durations of 0.5 to 0.8s with an ease-out curve such as expo-out feel responsive. When staggering a list, keep the total stagger under half a second so the last item is not left waiting.