no-scroll
class to the Body
when the fullscreen menu opens and remove it when it closes..no-scroll { overflow: hidden; }
in custom code to prevent background scrolling while the menu is active.Your fullscreen menu is fixed in position, but the page still scrolls underneath it. This usually happens because body scrolling isn't disabled when the menu opens.
Body
element or any parent wrapper that scrolls.body.no-scroll
or use a custom attribute for styling control.no-scroll
class to the Body
(using the Add class
action).no-scroll
class (using the Remove class
action).no-scroll
class style:<style>body.no-scroll { overflow: hidden; }</style>
no-scroll
is working across tablet and mobile views, where the default body behavior can differ.no-scroll
class dynamically with custom JavaScript for more complex menus (optional).To prevent scrolling behind a fullscreen fixed menu in Webflow, apply a no-scroll
class to the Body
element using interactions, and define that class in custom code as overflow: hidden
. This locks the background while the menu is open.