Skip to content
Discussion options

You must be logged in to vote

Both views share the window scroll position while the fade runs. For links using that transition, try data-sveltekit-noscroll, then call window.scrollTo({ top: 0 }) after the outgoing animation finishes. If both views must remain visible at different scroll positions, give them separate scroll containers or capture the outgoing view with a view transition. Keep normal restoration for back and forward navigation.

SvelteKit navigation API

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by mig-hub
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants