Skip to content

Transitions Between States

Crossfade

One element fades out as another fades in, in the same spot.

View AView B

One view fades out as the other fades in on the exact same footprint.

Continuity transition

A change that keeps the user oriented by visually connecting before and after. For example, making the same rectangle bigger and smaller.

Compact

Expanding the same container keeps users oriented between before and after.

Morph

One shape smoothly turns into another shape, e.g. Dynamic Island.

●

One pill smoothly morphs its width, height, and radius into a new shape.

Shared element transition

An element travels and transforms from one position into another, like a thumbnail expanding into a card.

Shared element

A thumbnail expands directly into the detail view so the user never loses context.

Layout animation

When an element’s size or position changes, it animates to the new spot instead of snapping.

1
2
3
4

Instead of snapping to a new position, layout animation interpolates smoothly.

Accordion / Collapse

A section smoothly expands and collapses its height to show or hide content.

CSS grid-template-rows transitions smoothly between 0fr and 1fr.

Click the header to smoothly expand and collapse the panel height.

Direction-aware transition

Content slides one way going forward and the opposite way going back, so navigation has a sense of direction.

Enter vs exit asymmetry

Entering and exiting animations should not be mirror images of each other. Enter is an arrival and should decelerate into place. Exit is a departure and should accelerate away. Reversing the enter animation for the exit makes it feel like content is arriving backwards.

Shared axis transition

When navigating between two related views, the motion direction should reflect the spatial relationship between them. Moving forward through a flow animates right. Going back animates left. Violating this creates a sense of spatial disorientation.