<ViewTransition> combined with the transitionTypes prop on <Link>, which drives the browser's native View Transitions API.<ViewTransition> a name to morph a shared element (like the product image) across views. Use enter/exit classes keyed by transition type to slide whole pages in a direction.1import { ViewTransition } from 'react';23<Link4href={`/view-transitions/posts/${product.id}`}5transitionTypes={['transition-to-detail']}6>7// !mark8<ViewTransition name={`product-${product.id}`} share="animate-morph">9<ProductImage />10</ViewTransition>11</Link>;
<ViewTransition> with a matching name.<Link> picks the animation by passing a transitionTypes value.







