How lenis works ? #364
Answered
by
clementroche
TheElegantCoding
asked this question in
Q&A
-
I have a question about how this package works, this make a wrapper with position fixed for all the page and add a transition when user scroll ? Or this modify the event of scroll in js |
Beta Was this translation helpful? Give feedback.
Answered by
clementroche
Jul 4, 2024
Replies: 1 comment
-
Lenis prevent the default |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
TheElegantCoding
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Lenis prevent the default
wheel
event and animate the scroll according to thewheel.deltaY
value, it doesn't require anyposition: fixed
.