How to Use the Script:

  1. Copy the script and paste it just before the closing </body> tag. https://cdn.jsdelivr.net/gh/jeminids/webflow-codes@disable-scroll-v1.0/disable-scroll.min.js
  2. There are two main elements: disable scroll trigger & enable scroll trigger. it can be div, a, button, etc.
  3. To set the disable scroll trigger, add an attribute: data-scroll=disable.
  4. To set the enable scroll trigger, add an attribute: data-scroll=enable.