DEV Community

Discussion on: Create awesome Page Transitions in NextJS using Framer motion

Collapse
 
javusscriptus profile image
Michal Zalobny

How to prevent website browser from "jumping" while changing the route? It happens for example when you switch the subpage while it is already scrolled a little, and new subpage is not scrolled at all

Collapse
 
shaancodes profile image
Shaan Alam

Try scroll={false} on the tag

Collapse
 
javusscriptus profile image
Michal Zalobny

Your idea is working, but it still jumps while using native controls (like the browser arrows)

Thread Thread
 
defite profile image
Nikita Makhov

Have you tried overflow: hidden on the parent container?