overflow: hidden
on the <body>
when the overlay is active and reset it after closing to prevent background scrolling.position: fixed
, covers the full viewport, and has high z-index
to block interactions.body { overflow-x: hidden; }
.You're experiencing multiple scrolling issues in Webflow: overlapping scrollbars due to an overlay, horizontal scroll getting stuck, and laggy vertical scroll in preview. These are often caused by layout overflow problems, improper scroll-lock handling, or oversized elements.
overflow: hidden
on <body>
or <html>
when the overlay opens to prevent background scrolling.position: fixed
, full-screen sized (top: 0, left: 0, width: 100vw, height: 100vh
) and a high z-index
so it captures all scroll events.pointer-events: none
or disabling interactivity accordingly.width: 100vw
but also padding or margins, which can cause overflow.F12 → Elements → Body
, toggle different layouts to find elements wider than the viewport.<style>
:body { overflow-x: hidden; }
display: flex
/grid
, not animations moving large panels, as transform-heavy setups can cause jank.To fix your overlay and scroll issues in Webflow:
body { overflow: hidden; }
when overlay is active to stop background scroll.position: fixed
and full viewport styling for overlays.overflow-x: hidden
.These adjustments will improve scroll performance and interface behavior across both Designer and the published site.