Disable Scroll

Did you ever come across the need to stop your website from scrolling once a button is clicked? Let's say the hamburger menu opens or a pop up opens, our Webflow Tool "Disable Scrolling" enables you to do that.
Article

How to add Disable Scroll feature in Webflow?

Step #1

Copy the Stop Disable <script>

Integrating our Disable Scroll tool into your website is a breeze! Follow these easy steps to get started:

  1. Click on "Pages" in the left navigation or press "P" on your keyboard
  2. Select the settings icon beside the page you want to add the script to
  3. Scroll down to the "Before </body> tag" section
  4. Simply copy the script we've provided and paste it here

That's it!

Adding script within Page Settings on WebFlow
Adding script within Page Settings on WebFlow

Step #2

Set Custom Attributes

Name field will change to "nw-stop-scroll". Value field will be left empty.

You will need to add "nw-stop-scroll" to the name field of custom attribute of the element that would stop the website from scrolling. Example: Hamburger menu div block.

The Value attribute field should be left empty.

Step #3

Publish your site

It's highly recommended to publish your site on staging environment to ensure the scrip. Once you have confirmed it, you can publish it to your primary domain.

Detail
<script type='text/javascript' src='https://cdn.jsdelivr.net/gh/neueworld/WebFlow-Tools@main/stop-scroll-v1.0.0.0.js'></script>
Copy Script
Work with Us
Book a Call
published On
January 20, 2026
updated On
April 21, 2026
category
Boosters
author
Jayant Rao