Replies: 1 comment 3 replies
-
Have you tried using |
Beta Was this translation helpful? Give feedback.
3 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.
-
I'm trying to make a traditional website experience where scroll isn't retained i.e. I scroll to the bottom of my home page, click on a navbar link to take me to an 'about me' page and the about me page renders with the view window/scroll position already at the top of that page - without any type of scrolling transition effect.
Currently when I move between pages on my site, if I've scrolled down a page then try to open the next page, the new page opens with the window in the same place and then there's a visible transition while it scrolls to the top.
I've looked in the docs at the useScrollRestoration hook but can't work out how to implement that. I'm using gatsby 3.0.4 and my page has a layout wrapper, not sure if that impacts things per this issue: #26861.
Code on my about-me page is below.
Any help would be appreciated :-)
Beta Was this translation helpful? Give feedback.
All reactions