Click a thumbnail and have it fly into place, with about one line of JavaScript. Our new tutorial covers the View Transitions API, from startViewTransition and named elements to animating between whole pages:
Nice launcher into the View Transitions API stuff, lol. Quick heads-up: this API hinges on matching elements across views via view-transition-name and a smooth start with startViewTransition. If you’re exploring conceptually, think about how you’d structure your DOM so the morph targets are predictable, and what happens when an element appears or disappears between views.