LoginGet started — it’s free
Made in Webflow

Disable Scrolling on Click (compatible with all devices)

Clone in Webflow319
Alex Iglesias Piñol's avatar
by Alex Iglesias Piñol
site profile thumbnail


There are some times when you need to prevent the user from scrolling when a certain event occurs. An example could be when a modal is opened after clicking a button. Use the code in this project to easily prevent the users from scrolling when clicking any element.

Feeling inspired?

If this Made In Webflow site sparked some inspo, why not get started on a project of your own? Clone a site, purchase a template or start building from scratch.

More by Alex Iglesias Piñol

See profile
View details
Advanced Webflow Forms - Multi Steps & Conditional Logic
© 2022 Webflow, Inc. All rights reserved.