Lenis Smooth Scroll / App Router Page Postion
Unanswered
Pyramid ant posted this in #help-forum
Pyramid antOP
Does anyone have suggestions on how to properly handle Page Route changes starting at the top of the page in Next.JS when Lenis is installed. I have some hacky solutions, but seems like a common problem. especially when the page is only slightly scrolling and a link is clicked, the next page will start midway down the page and not snap back to the top.
1 Reply
@Pyramid ant hey use an id tag on the element and use link like /a-fun-page#id-to-go-to