CSS Between the Pages
summary
Shows how to capture page snapshots and animate between them using document.startViewTransition for single‑page updates and a meta tag for navigations on same‑origin multi‑page sites (behind a Chrome flag today). Browser creates pseudo elements like view-transition-old and view-transition-new (and groups/image pairs) that CSS can animate; name fixed regions with view-transition-name to preserve or morph headers/footers. Progressive enhancement, prefers‑reduced‑motion handling, Chromium support (~65%) and examples (blinds via CSS masks, wipes, Astro integration) are demonstrated.
AI-written summary · about
chapters (23)
- 0:00Introduction
- 1:03View Transitions API
- 3:10Why use transitions
- 4:55Single page demo
- 6:01Adding transitions
- 7:25CSS pseudo elements
- 8:49Custom animations
- 9:51Fixed elements
- 11:18Debugging transitions
- 12:21Accessibility notes
- 13:48Browser support
- 14:55Framework integration
- 15:58Progressive enhancement
- 16:20Multi-page transitions
- 17:24Meta tag setup
- 18:11Multi-page demo
- 19:15Website vs app
- 20:46Resilient web
- 21:50Real-world examples
- 23:14Fun transitions
- 25:20Platform advantages
- 26:01Reduce JavaScript
- 27:03Closing thoughts
