7 View Transitions Recipes to Try
This title could be clearer and more informative.Try out Clickbait Shieldfor free (5 uses left this month).
Seven ready-to-use CSS View Transition recipes are presented with full code snippets: pixelate dissolve, wipe up (with directional variants), rotate in-out, circle wipe-out, diagonal push, curtain reveal, and 3D flip. Each recipe uses the @view-transition at-rule with a named type, paired with ::view-transition-old and ::view-transition-new pseudo-elements and @keyframes animations. The setup section explains how to opt in to view transitions, use the types descriptor to avoid conflicts, and wrap everything in a prefers-reduced-motion media query for accessibility.

Table of contents
The setupPixelate dissolveWipe upRotate in-outCircle wipe-outDiagonal pushCurtain reveal3D flipAny cool recipes you want to share?4 Comments
Sort: