body-scroll-lock

Enables body scroll locking (for iOS Mobile and Tablet, Android, desktop Safari/Chrome/Firefox) without breaking scrolling of a target element (eg. modal/lightbox/flyouts/nav-menus)

Tags: body scroll, body scroll lock, react scroll lock, react scroll, scroll, lock, freeze, toggle, disable, overflow, modal, lightbox, react, vanilla-js, angular, vue, ios, mobile, desktop, tablet, bsl

Version

Asset Type

  • https://cdnjs.cloudflare.com/ajax/libs/body-scroll-lock/2.7.0/bodyScrollLock.min.js
  • https://cdnjs.cloudflare.com/ajax/libs/body-scroll-lock/2.7.0/bodyScrollLock.es6.js
  • https://cdnjs.cloudflare.com/ajax/libs/body-scroll-lock/2.7.0/bodyScrollLock.es6.min.js
  • https://cdnjs.cloudflare.com/ajax/libs/body-scroll-lock/2.7.0/bodyScrollLock.js