Replies: 1 comment 2 replies
-
The freezing of the DOM is indeed one of the hard parts of the view transitions. Depending on the case, you can handle it differently. Here you could start the view transition in a before resolve global hook where you await mouse up or specific transitions. A simpler solution would be to delay the whole navigation so the browser has the time to update. In practice you will find lots of different edge cases that can be a bit frustrating for full page view transitions |
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.
Uh oh!
There was an error while loading. Please reload this page.
-
Hey. I tried to use
document.startViewTransition
with vue router and I have some feedback. Generally it works good but currently it's lacking an ability to display route loading progress bar. The thing is all route navigation passed to view transition including downloading async components, before enter guards, etc therefore when you click on a link an app ui freezes until navigation completionI did some demo in codepen. Here you can see delay to the sub route in 2 sec with transition
It would be nice to have calling
startViewTransition
directly on components update so while components/guards loading we can display some progress bar to inform a user that a navigation started and we're waiting for dataBeta Was this translation helpful? Give feedback.
All reactions