Enter and exit animations

Also called exit animation or mount and unmount animation

The pair of animations an element plays as it is added to the page and as it is removed, so changes to a list or layout are easy to follow.

Enter and exit animations explained

An enter animation plays when an element appears, such as a new row fading and sliding into a list. An exit animation plays when it leaves, such as a dismissed toast fading out before it is removed. Together they let people track what changed.

Exits are the harder half. Most frameworks remove an element from the page immediately, which leaves nothing to animate. In React, Motion’s AnimatePresence keeps a removed child on the page until its exit animation finishes. In plain CSS, @starting-style covers entrances, and exits work when the element is hidden with display: none and transition-behavior: allow-discrete.

Make exits faster than entrances, around 150 to 200ms against 250 to 300ms, since the person has already moved on. Let the remaining items glide into the gap with a layout animation, and use simple fades when someone prefers reduced motion.

Often confused with

Layout animation
A layout animation moves elements that change position or size. Enter and exit animations handle elements being added or removed, and the two often run together.
All terms

Fade in

An entrance animation where an element goes from fully transparent to fully visible, so it appears gently instead of popping in.

Slide in

An entrance animation where an element moves into place from one side, often while fading in, so people see where it came from.

Toast notification

A brief message that slides into a corner of the screen to confirm an action, then disappears on its own after a few seconds.

Interruptible animation

An animation that can change course mid-flight, continuing smoothly from its current position and speed when someone acts again before it ends.