Stop the page from scrolling when a modal is open

Description
This is a quick guide on creating modals that stop the page from scrolling, after you've opened a modal.
Closing the modal via a background click or by clicking on the on the close icon, closes the modal and then makes the page scrollable again.
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.
We miss comments too!
Right now, Made in Webflow doesn't offer all of the same functionality that Showcase did, like the ability to leave comments. But don't worry: We're working to bring comments back as soon as possible!
As always, we'd love to hear your feedback! Click the link below to take a short survey about Made in Webflow.