feat: Enable view transitions feature by filzrev · Pull Request #9909 · dotnet/docfx

This PR intended to support ViewTransition for modern template.

Background
Chrome 126 (It'll be released next month) supports Multi-Page-Application(MPA) ViewTransition by default.

This PR enable view transition by adding related CSS styles
that based on https://github.com/WICG/view-transitions/blob/main/cross-doc-explainer.md#declarative-opt-in

By enabling MPA view transition.
TOC/breadcrumb regions are more smoothly transitioned when navigating between pages.

How to test ViewTransition features

  • Manually enable chrome://flags/#view-transition-on-navigation feature flags or.
  • Use Chrome Canary build.