darkroomengineering / lenis

How smooth scroll should be

Home Page:https://lenis.darkroom.engineering

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Position: fixed sidebars issue

vorda93 opened this issue · comments

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

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