@finsweet/attributes-scrolldisable
v1.6.2
Published
Disables scrolling on certain events.
Downloads
1,988
Readme
scrolldisable
Attribute
Users can prevent the page from scrolling when:
- An element is clicked.
- An element is visible on the page.
- A Nav Menu is open.
CDN Import
<!-- [Attributes by Finsweet] CMS Scroll Disable -->
<script defer src="https://cdn.jsdelivr.net/npm/@finsweet/attributes-scrolldisable@1/scrolldisable.js"></script>