hide-scrollbar

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

Usage no npm install needed!

<script type="module">
  import hideScrollbar from 'https://cdn.skypack.dev/hide-scrollbar';
</script>

README

hide-scrollbar

  • 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');