overflow: hidden
to the Body via the modal open interaction to disable page scrolling.position: fixed; top: 0; left: 0; width: 100%; height: 100%
to pin it to the viewport top.To prevent the homepage from scrolling when a modal is open and ensure the modal opens at the top of the viewport, you'll need to set up interactions and use overflow properties carefully.
body no-scroll
) and set it to Overflow: Hidden.no-scroll
to the Body element.no-scroll
from the Body element.max-height: 90vh
).To lock scrolling when a modal is open in Webflow, apply an overflow: hidden
class to the Body
via an interaction. Ensure your modal wrapper is position: fixed
at the top of the screen to make it always open at the top of the viewport. Restore scrolling by removing the class when the modal is closed.