lenis smoothscroll on whole site, NextJS 13 #251
Unanswered
fabricewerger
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
-
Hello all! I am trying to get Lenis smoothscroll on my whole website. I want to initialise in it my layout.jsx file but I am having troubles setting it up right.
I added my code below. If I do not add 'use client' I get a ReactServerComponentsError stating I need to add the 'use client'. If I do that I get a error related to the meta data. But If I remove the metadata my page does not scroll anymore. I added both errors as images to this post. Has somebody achieved this behaviour yet? Or is somebody willing to help me out?
Cheers!
Beta Was this translation helpful? Give feedback.
All reactions