Swup and Lenis Scroll #520
Unanswered
DanielKNDZ
asked this question in
Help
Replies: 1 comment
-
The CodePen is empty :( |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello. Im using Swup with Lenis Scroll (scroll smoothness). The problem is when i'm scrolling page A and go to the page B (right at the moment of page A scrolling animation) page B is scrolling too. I've used
window.scrollTo(0, 0);
and it works fine, but only when the scroll animation is fully stopped on page A. Any ideas how to solve this problem?Sorry for my English, not native
Lenis code
https://codepen.io/dackjaniels/pen/ExRYJYd
Swup
const swup = new Swup(); swup.on('contentReplaced', function () { window.scrollTo(0, 0); });
Beta Was this translation helpful? Give feedback.
All reactions