scroll-width

0.4.0 • Public • Published

scroll-width

Because not everyone hides the scrollbar on OSX ;) Tiny AMD module that will return you the browsers scrollbar width can be installed via bower, AMD is optional.

Installation

NPM

  npm install scroll-width --save

yarn

  yarn add scroll-width

Bower

  bower install scroll-width --save

AMD usage:

  require(['scrollWidth'], function(scrollWidth){
    alert("My scroll's width is " + scrollWidth + "px");
  });

without AMD:

  alert("My scroll's width is " + window.scrollWidth + "px");

Readme

Keywords

Package Sidebar

Install

npm i scroll-width

Weekly Downloads

6

Version

0.4.0

License

MIT

Last publish

Collaborators

  • meodai