Also called Cross-dissolve, Fade transition, Root cross-fade, Cross-Document View Transition, MPA view transition, @view-transition navigation auto
The old page fades out as the new page fades in over the same area.
Use for
Default route change
Add a "Crossfade Page Transition" (also called a cross-dissolve or fade transition) to [where].
On navigation, the old page should fade out while the new page fades in over the same area at the same time: soft and fairly quick.
Keep both pages in the same spot so nothing shifts during the fade, and move focus to the new page's main heading after the change.
Also called Slider, Swipe carousel, Scroll-snap carousel
Slides move horizontally past a viewport, snapping one item into place at a time.
Use for
Hero banners, product galleries
Add a "Carousel Slide" (also called a slider or swipe carousel) to [where].
Each step should slide the row sideways so the next slide snaps into the center, smooth and decelerating, with the neighbours peeking at the edges and the position dots following along.
Move one slide at a time, support swipe on touch as well as buttons and arrow keys, and keep the controls labelled for screen readers.
Also called Fade-through transition, Out-In Route Transition, Wait mode, mode="wait", mode="out-in"
The outgoing content fades out completely, then the incoming content fades in with a slight scale.
Use for
Switching between unrelated destinations
Add a "Fade Through" page transition (also called a fade-through transition or out-in route transition) to [where].
The outgoing content should fade out quickly and completely first, then the incoming content should fade in while scaling up slightly into place.
Never let the two overlap, and keep the incoming content's layout from shifting while it scales.
Also called Cover flow carousel
A center item faces forward while side items angle away in perspective.
Use for
Album and media carousels
Add a "Coverflow" carousel (also called a cover flow carousel) to [where].
The center item should face forward while the items on each side turn away in perspective; dragging sideways slides the row, and on release it settles smoothly on the nearest item.
Support arrow keys and swipes as well as dragging, and keep vertical page scrolling working on touch devices.