Beyond the Spec: Cranking View Transitions up to 11
summary
Shows how the View Transition API actually works under the hood and what can be pushed: uses document.startViewTransition and the view transition promises to grab pseudo-tree animations, pause them, map scroll position to animation currentTime, and resume — enabling scroll-driven transitions by scrubbing animations. Covers FLIP-style keyframe replacement to force compositor rendering, a Chrome 137 time-travel workaround, a JS helper library and the view transitions toolkit (chrome.dev/view-transitions-toolkit), element-scoped transitions via element.startViewTransition, and a JS reimplementation plus an IE-style page transitions demo.
AI-written summary · about
chapters (15)
- 0:00Introduction and welcome
- 2:06What are view transitions
- 5:13Naming elements for transitions
- 7:37Triggering view transitions
- 10:05How the browser handles transitions
- 13:38Customizing transition animations
- 19:14Advanced view transition techniques
- 27:56Scroll-driven view transitions
- 33:11Optimizing animations for performance
- 36:21Handling interrupted transitions
- 39:10View Transitions Toolkit introduction
- 40:13Element-level view transitions
- 41:14Polyfilling and limitations
- 42:37Historical context and fun demos
- 45:02Q&A and closing remarks
