darkroomengineering / lenis

How smooth scroll should be
https://lenis.darkroom.engineering
MIT License
7.33k stars 316 forks source link

Position: fixed sidebars issue #305

Closed vorda93 closed 4 months ago

vorda93 commented 4 months ago

Hello there,

I'm not much of a developer, but I created this website in Webflow, which includes a section with a list of items. Each item opens up its own sidebar as you click on them. Initially, the sidebar is moved 100% to the right and then slides in once the item is clicked. However, when the sidebar moves into the screen, it contains content that overlaps 100vh and should be scrollable. Unfortunately, when I install Lenis and attempt to scroll through this sidebar, my body moves, but the sidebar remains static, and nothing happens. Removing Lenis from my code resolves the issue, and everything works as intended.

I really love this plugin, as it offers the best smooth scrolling experience available, so I'd greatly appreciate any assistance.

Here's the link to my live website, which might provide further insight: mediteranskisan.com

vorda93 commented 4 months ago

Well... a few minutes later, I found a solution... Just added data-lenis-prevent to a parent which holds each individual sidebar