no-scroll
class with overflow: hidden
and use Webflow interactions to add it to the <body>
when the menu opens and remove it when it closes.Yes, you can block page scrolling when the left menu is open in Webflow. You'll need to add a custom interaction that disables scrolling on the <body>
while the menu is open.
no-scroll
) in Webflow.Overflow
to Hidden for both X and Y axes (Overflow: hidden
).<body>
.<body>
Elementno-scroll
class using interactions.Body
as the element.no-scroll
.Body
as the element.no-scroll
.To block scrolling when the left menu is open, create a no-scroll
class with overflow: hidden
, then use interactions to add it to or remove it from the <body>
when the menu opens or closes.