Replies: 1 comment
-
you're calling lenis.raf twice per frame, you should remove this part. function raf(time) {
lenis.raf(time);
requestAnimationFrame(raf);
}
requestAnimationFrame(raf); |
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
-
Hi,
I've integrated GSAP with Lenis in Nuxt 3 and I'm wondering if I did it correctly. It works but sometimes, it may look like it works. Here is a demo: StackBlitz
Here is the code from the minimal demo if you would rather read it here.
Lenis component:
Thank you
Beta Was this translation helpful? Give feedback.
All reactions