Skip to content

Latest commit

 

History

History
26 lines (19 loc) · 819 Bytes

README.md

File metadata and controls

26 lines (19 loc) · 819 Bytes

hide-scrollbar

Downloads Version License

  • Hide scrollbar(s) of the given element both on horizotal and vertical if present.

Install

npm install hide-scrollbar

Usage

import hideScrollbar from 'hide-scrollbar';

// el: target element
// width: width of wrapper element of el. Required.
// height: height of wrapper element of el. Required.
hideScrollbar(el, '200px', '200px');