Astro glossaryView transitions animate the change from one page to the next using the browser's View Transition API. Astro adds them with CSS or its ClientRouter component.
View transitions are animations between one page and the next, such as a fade or an element that glides into its new place, built on the browser's View Transition API. They make a multi-page site feel as smooth as an app.
In Astro
Browsers that support cross-document view transitions can animate between ordinary pages with a little CSS and no JavaScript. Astro's <ClientRouter /> component (from astro:transitions) goes further: it turns navigation into client-side routing, adds fallbacks for browsers without the API, and provides directives such as transition:name, to pair an element across pages, and transition:persist, to keep an element such as a playing video alive between pages.
Astro switches the animations off for visitors who ask for reduced motion.
Source: Astro docs: View transitions.