hide-show-scroll

2.0.0 • Public • Published

hide-show-scroll npm File Size

https://henrygd.me/hide-show-scroll

This won't work if the scrollbar is on an element other than html. May add that option in the future.

Module Usage

$ npm install hide-show-scroll
import { hideScroll, showScroll } from 'hide-show-scroll'

// lock scroll / hide html scrollbar
hideScroll()

// allow scroll / show html scrollbar
showScroll()

Direct Script Usage

<script src="hide-show-scroll.min.js"></script>
// lock scroll / hide html scrollbar
hideShowScroll.hideScroll()

// allow scroll / show html scrollbar
hideShowScroll.showScroll()

License

MIT

Readme

Keywords

Package Sidebar

Install

npm i hide-show-scroll

Weekly Downloads

42

Version

2.0.0

License

MIT

Unpacked Size

127 kB

Total Files

9

Last publish

Collaborators

  • henrygd