body-no-scroll CSS class, adding overflow: hidden; and height: 100vh;.body-no-scroll class on the body when the lightbox is opened or closed.To create a body freeze effect while allowing the Webflow lightbox content to scroll independently, follow these steps:
body-no-scroll.<head> area or use an embed element:.body-no-scroll { overflow: hidden; height: 100vh; }
body-no-scroll class to the body when the lightbox is opened.body-no-scroll class when the lightbox is closed.
To allow lightbox content to scroll while freezing the rest of the body, add a body-no-scroll CSS class to prevent body scrolling, and use Webflow interactions to toggle this class on lightbox open/close actions. This ensures the background remains static while the lightbox content remains dynamically scrollable.