SwiftUI carousel animations

11 examples. Carousel animations built with SwiftUI. Carousels, sliders and galleries with 3D spirals, liquid edges and infinite loops.

SwiftUI carousel animations: common questions

How do I build carousel animations 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.
How do I make an infinite carousel?
Duplicate the items and translate the track from 0 to −50% in a linear loop; mark the copies aria-hidden.
How do I add depth to a carousel?
Scale and rotate items by their distance from the centre, and add slight blur or shadow to the ones further away.

Carousel animations in other frameworks

More SwiftUI animations