Lenis with gsap and custom RAF #438
Unanswered
aronanol45
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi guys, hope you're doing well.
Currently working on a gsap, lenis and three.js setup.
On mobile gsap create jittering, found a way to fix that by adding overflow:hidden to the html tag, and scrolling trough the body.
Here my current code:
Here if i remove lenis, everything works perfect, gsap scrollTrigger works, if I remove the comments to let lenis launch, nothing works anymore. I tried also by adding
wrapper: document.documentElement, content: document.body
to lenis setup but still nothing.My idea is to update lenis, gsap , and three.js on the same RAF, so trying to get sync and avoid "jitterings" on mobile devices.
Here one quick preview: https://codesandbox.io/p/sandbox/nskhzh?file=%2Findex.html%3A1%2C1-116%2C1
Thanks guys!
Beta Was this translation helpful? Give feedback.
All reactions