Replies: 1 comment 2 replies
-
|
Hey, I understand the challenge and moved this discussion to an issue to track progress: #12223 It's not my immediate plan to implement this (we first would like to release v4 and eventually upgrade React Router) but if anyone want to give it a try and submit a POC, I'll take a look as an example implementation, but it likely won't be merged. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
View Transition is a feature to enhance page navigation experience by having a animation plays when navigating from one route to another route. Having this page transition gives an overall better user experience so page navigation are not too 'harsh'. Of course, the best practice of turning off this when user prefers reduced motion should be respected too.
Example site having View Transitions: https://web.dev/
Browser support: Baseline Newly Available feature and further enhancement such as Cross-Document View Transtion is in Interop 2026. So by end of 2026, I expect this to be widely available in major browsers.
At time of writing (v3.10), adding View Transition to Docusaurus is not straightfoward because of the need to calling
ReactDOM.flushSyncto get a snapshot of the next route. When inside client module'sonRouteUpdate, it is already too late to call as React is already in progress of rendering the next route. So I'm wondering if there's possibility to explore adding this view transition feature into Docusaurus core?Thanks~
Beta Was this translation helpful? Give feedback.
All reactions