You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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!
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
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.bodyto 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