Motion Library ‹ Free tools

All / Page transitions

View Transitions crossfade

The browser snapshots the old and new view and crossfades them for you with document.startViewTransition().

CSSJavaScriptIntermediate
Live demo Open full screen

Good for

Smooth view or page changes with almost no code. Also works across real page loads with @view-transition { navigation: auto }.

Watch out for

Supported in Chrome, Edge and Safari 18+. Always fall back to a plain update when the API is missing.

Accessibility

Wrap motion in @media (prefers-reduced-motion: reduce) and switch it off or shorten it for people who ask for less movement.