Updated 8 October 2026.
The View Transitions API lets a browser animate between visual states. Use it to make a change of context easier to follow: opening an item, moving between related pages, or updating a view. Keep the underlying navigation and content usable when no transition runs.
Same-document and cross-document transitions
For a change inside one document, the browser can capture the old state, run your update, and animate into the new state. For navigation between documents, cross-document transitions can connect supported same-origin pages. The implementation differs; follow the browser platform’s same-document guide and cross-document guide.
Treat compatibility as something to test in your supported browsers. Do not make a transition API responsible for fetching content, deciding whether a link works, or handling a failed form submission.
A safe same-document pattern
Keep the DOM update in a function that works on its own. Feature detection and the motion preference decide whether to wrap it in a transition:
function updateView(updateDOM) {
const reduced = matchMedia('(prefers-reduced-motion: reduce)').matches;
if (!document.startViewTransition || reduced) {
updateDOM();
return;
}
return document.startViewTransition(updateDOM);
}
This helper assumes a synchronous DOM update. For asynchronous data, handle loading and failure explicitly and update only when the state you intend to show is ready. Preserve focus on a meaningful element after replacing interactive content.
Start small on a multi-page website
On compatible same-origin pages, a basic cross-document opt-in is:
@view-transition {
navigation: auto;
}
@media (prefers-reduced-motion: reduce) {
::view-transition-old(root),
::view-transition-new(root) {
animation: none;
}
}
The ordinary link should still navigate successfully without this CSS. Start with a short root transition before connecting individual elements across pages. Give shared elements intentional names and ensure there are no duplicate active names within a document.
Choose motion that explains the interaction
A restrained fade is often enough. A shared product image may be useful when it clearly connects a listing to the detail page. Avoid animating unrelated headings or moving the whole viewport a long distance simply because the feature permits it.
Keep important controls responsive during the transition. Test long titles, late-loading images, font changes and content that changes size between states. A transition should not conceal a layout problem or make an otherwise fast page feel slow.
Accessibility and navigation checks
- Verify the result with reduced motion enabled.
- Test keyboard focus before and after the change.
- Keep semantic headings, landmarks and link destinations intact.
- Check browser Back and Forward navigation.
- Test slow responses and failed content requests.
- Test a browser where the enhancement is unavailable.
For a larger animation system, coordinate ownership carefully. Two engines should not control the same element’s transform or opacity at the same time. Page transitions and scroll effects should each have a clear lifecycle and cleanup procedure.
Frequently asked questions
Does this replace a scrolling animation library?
No. View transitions connect visual states. A scroll animation system links effects to scrolling. Use either only where its behaviour helps the page.
Will an unsupported browser show a broken page?
It should show normal navigation or the normal DOM update. Feature detection and a working baseline are essential to that result.
Should every page use an elaborate transition?
No. Choose a consistent, modest effect, then add shared-element transitions only where they help a visitor understand where they moved.
Explore our frontend development services or discuss an accessible motion system.
Frequently asked questions
What does this page cover?
View Transitions API explains add native page transitions with progressive enhancement, reduced-motion support, working navigation and clear fallbacks for unsupported browsers in practical terms: what it means, when it applies and what to do next. It is written for business owners and developers rather than for search engines, with the technical detail kept where it is useful.
Who is this written for?
Owners and marketing leads who need to make a decision, plus developers who want the implementation detail. Jargon is explained on first use and every recommendation can be acted on without buying anything.
Is this information current?
It is reviewed against current Google documentation and observed client results, and updated when the guidance changes. Anything time-sensitive is dated in the copy rather than left to drift.
Is it free to read?
Yes, with no paywall, no email gate and no signup. If it is useful, the only thing we ask is that you link to it when you quote it.
Can you implement this for us?
Yes. The same team that writes these guides delivers the work, so the advice and the implementation come from the same place rather than a content team and a separate agency.
Where can I read more?
Related guides, services and free tools are linked at the end of this page, and the full library is indexed in the sitemap so you can find the topic closest to your question.
Do you accept corrections?
Yes. If something here is out of date or wrong, tell us and it gets fixed with a visible update. Accurate technical writing is worth more to us than being right in public.
Need help implementing this?
Best Web Developer gives you a fixed quote, a dated plan and a senior developer who stays on the project from first call to launch. No account managers, no hourly surprises.
Want this handled for you?
We build and optimise sites like this every week. Book a free 30-minute call and we will tell you exactly what we would change on yours.
Get a free site review