Clément Roche
Clément Roche
Hi @Rosinida thank you for your feedback, can you provide a live demo (ideally on codepen or codesandbox) ?
What do you mean by minimum scroll distance ? You mean emulate CSS scroll snap ?
It seems like the solution would be to emulate scroll snapping using JavaScript and that's something we want to avoid. So for the moment i would advice you to not...
Yes, that's a known "issue", we're still trying to find the most seamless way to do it. A workaround is to listen to url anchor change and then use lenis.scrollTo.
@betawaxx can you provide a codepen ?
You're using an old version of Lenis (0.1.12) on codepen try with the last one. About the jump it's because of the easing, every time you scrollTo it will start...
Regarding the "anchor link jump" i updated your codepen https://codepen.io/ClementRoche/pen/xxjYvWj with the last lenis version and it's working perfectly. It seems like you (or Webflow) are doing extra stuff. About...
I cannot rely on Webflow because too many things are running behind. I really need a codepen as minimal environnement.
Do you want to reset scroll position on page change ? If you want to I advice you to destroy lenis before page destroy and recreate it on page create...
Hi, i'm not conviced about using TypeScript to be honest, I personaly never use it and i'm scared it can slowdown future improvements of the lib. Is it something really...