Custom wrapper can't seem to work #141
Closed
krausestudio
started this conversation in
General
Replies: 1 comment
-
You need to provide content element as well for example: |
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
-
First and foremost—love your library!
Though after the update I can't seem to define the wrapper. I would like for my
to be the wrapper(meaning that the lenis classes will be added to )Can you assist me on the correct implementation of this?
Current:
const lenis = new Lenis({ wrapper: document.main, // what to add here duration: 1.2, mouseMultiplier: 1, smoothTouch: true, infinite: false }); lenis.on("scroll", (e) => { console.log(e); }); function raf(time) { lenis.raf(time); requestAnimationFrame(raf); } requestAnimationFrame(raf);
Beta Was this translation helpful? Give feedback.
All reactions