SwiftUI screen & page transitions

68 examples. Screen & page transitions built with SwiftUI. Transitions between screens and states: shared elements, zooms, morphs and sheets that keep people oriented.

SwiftUI screen & page transitions: common questions

How do I build screen & page transitions in SwiftUI?
Pick an example below, copy its prompt (or send it to Claude Code, Cursor or Codex) and your agent builds it in SwiftUI. Each prompt lists the layout, timing and easing, and links a keyframe sheet of the motion. Use withAnimation with a spring, for example .spring(response: 0.35, dampingFraction: 0.8), for most state changes. Reach for matchedGeometryEffect when an element moves between views, PhaseAnimator or KeyframeAnimator for multi-step sequences, and contentTransition(.numericText()) for changing numbers.
What makes a good page transition?
It shows where content came from and where it went. Shared elements and short, eased moves (250–400 ms) beat generic fades or slides.
How do I add page transitions on the web?
The View Transitions API animates between DOM states or pages with a few lines of CSS; in React, Framer Motion's layoutId does the same.

Screen & page transitions in other frameworks

More SwiftUI animations