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/3.1.3/bodyScrollLock.min.js
  • https://cdnjs.cloudflare.com/ajax/libs/body-scroll-lock/3.1.3/bodyScrollLock.es6.js
  • https://cdnjs.cloudflare.com/ajax/libs/body-scroll-lock/3.1.3/bodyScrollLock.es6.min.js
  • https://cdnjs.cloudflare.com/ajax/libs/body-scroll-lock/3.1.3/bodyScrollLock.esm.js
  • https://cdnjs.cloudflare.com/ajax/libs/body-scroll-lock/3.1.3/bodyScrollLock.esm.min.js
  • https://cdnjs.cloudflare.com/ajax/libs/body-scroll-lock/3.1.3/bodyScrollLock.js

Library Tutorials

Want to write your own awesome tutorials? Make and submit them today