Replies: 1 comment
-
you must use |
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 all,
I am trying to achieve a horizontal scroll with Lenis like the example on the main page of Lenis. On page scroll (up and down) the page is animated left and right with Lenis smooth scroll. To get the same effect I've done this by the following:
window.addEventListener('wheel', (e) => { scrollContainer.scrollLeft += e.deltaY; });
This is working properly, but the Lenis plugin is not smoothing the scroll out. I tried different options, but with no result.
I made a codepen where I setup the Lenis library as documented on the main page and changed the orientation to horizontal.
Can anyone help me out, since I see different websites using Lenis for horizontal page designs like https://axelvanhessche.com/works/summer-market
If there are any question, please feel free to ask.
Casper
Beta Was this translation helpful? Give feedback.
All reactions