{"_id":"simple-scrollbar","_rev":"8-5524aea011419ea842b960ed330b5947","name":"simple-scrollbar","description":"Very simple vanilla javascript library for creating a custom scrollbar cross-browser and cross-devices.","dist-tags":{"latest":"0.4.0"},"versions":{"0.2.0":{"name":"simple-scrollbar","version":"0.2.0","description":"Very simple vanilla javascript library for creating a custom scrollbar cross-browser and cross-devices.","main":"simple-scrollbar.js","repository":{"type":"git","url":"git+https://github.com/buzinas/simple-scrollbar.git"},"keywords":["scrollbar","custom-scrollbar","tiny-scrollbar","simple-scrollbar","vanilla-js"],"author":{"name":"Vitor Buzinaro"},"license":"MIT","bugs":{"url":"https://github.com/buzinas/simple-scrollbar/issues"},"homepage":"https://github.com/buzinas/simple-scrollbar#readme","gitHead":"bfcf42cc5f54c2e625490b0acd7fe2932b5dd16a","_id":"simple-scrollbar@0.2.0","scripts":{},"_shasum":"9c1249de1b6afe49305aa8cff8f2f5be952923f2","_from":".","_npmVersion":"3.10.7","_nodeVersion":"6.5.0","_npmUser":{"name":"buzinas","email":"buzinas@buzinas.com"},"dist":{"shasum":"9c1249de1b6afe49305aa8cff8f2f5be952923f2","tarball":"https://registry.npmjs.org/simple-scrollbar/-/simple-scrollbar-0.2.0.tgz","integrity":"sha512-6FnV1SMqdWmY7av+w0IBHq3OnZy4Dt7cid9P0PBmsfzourN8Hw3oXo+JEsDG49ayvxg++uBKQUjB8hKEnD9fag==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDJ72NS45nDsl0AGVVkln1vQtsOY2vTooXRLYjIwhR7fQIhAItAZdoBb65p+yGEt/N7AC9rTiZK7dfpIdwRVUqvdXIM"}]},"maintainers":[{"name":"buzinas","email":"buzinas@buzinas.com"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/simple-scrollbar-0.2.0.tgz_1475839366420_0.8144253338687122"},"directories":{}},"0.2.1":{"name":"simple-scrollbar","version":"0.2.1","description":"Very simple vanilla javascript library for creating a custom scrollbar cross-browser and cross-devices.","main":"simple-scrollbar.js","repository":{"type":"git","url":"git+https://github.com/buzinas/simple-scrollbar.git"},"keywords":["scrollbar","custom-scrollbar","tiny-scrollbar","simple-scrollbar","vanilla-js"],"author":{"name":"Vitor Buzinaro"},"license":"MIT","bugs":{"url":"https://github.com/buzinas/simple-scrollbar/issues"},"homepage":"https://github.com/buzinas/simple-scrollbar#readme","gitHead":"7d9f76b668f1cc875684e7647fd6cf145e88d5cb","_id":"simple-scrollbar@0.2.1","scripts":{},"_shasum":"4c27f751b406a6239e007870a545892a24214cb8","_from":".","_npmVersion":"3.10.7","_nodeVersion":"6.5.0","_npmUser":{"name":"buzinas","email":"buzinas@buzinas.com"},"dist":{"shasum":"4c27f751b406a6239e007870a545892a24214cb8","tarball":"https://registry.npmjs.org/simple-scrollbar/-/simple-scrollbar-0.2.1.tgz","integrity":"sha512-k4rErq3D9kzFF0CsQ/ldLH+gqCbPVyzTQPeZ56QB5Xn7Pi7YlkRa8f3N38wxNeMcePqXr8QjcSIKqeQUAjpkBA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDDRlZ1DnBmZ9kpV2rlx++R4owdiLKWMaKi9dlMOm9yXAIgaK9yYbamO4BWi3AogD+fwknRnwGO04ylFh3kMdnw4oE="}]},"maintainers":[{"name":"buzinas","email":"buzinas@buzinas.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/simple-scrollbar-0.2.1.tgz_1481655134230_0.47814739332534373"},"directories":{}},"0.3.0":{"name":"simple-scrollbar","version":"0.3.0","description":"Very simple vanilla javascript library for creating a custom scrollbar cross-browser and cross-devices.","main":"simple-scrollbar.js","repository":{"type":"git","url":"git+https://github.com/buzinas/simple-scrollbar.git"},"keywords":["scrollbar","custom-scrollbar","tiny-scrollbar","simple-scrollbar","vanilla-js"],"author":{"name":"Vitor Buzinaro"},"license":"MIT","bugs":{"url":"https://github.com/buzinas/simple-scrollbar/issues"},"homepage":"https://github.com/buzinas/simple-scrollbar#readme","gitHead":"8ec6819f6db896639ff87c044f930a17d69d89ad","_id":"simple-scrollbar@0.3.0","_npmVersion":"5.5.1","_nodeVersion":"8.9.1","_npmUser":{"name":"buzinas","email":"buzinas@buzinas.com"},"dist":{"integrity":"sha512-INFltM/kjt08fViznld3XQKqeF/17Jjxcur+FO5Jot2mG8rHxvtSLj92fU2PoDXg5pnfpZHwMUlpwXHvixdeBA==","shasum":"cb220ffe0658c6d661d881fc2713896caff727b9","tarball":"https://registry.npmjs.org/simple-scrollbar/-/simple-scrollbar-0.3.0.tgz","fileCount":6,"unpackedSize":10398,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDT6jRGhs3eSIUKkkJ7CNwJQngHK1WEamc/eDsWy/KemAIgSFh31KhqKGxn0d3UbUoumKhjN8HTwLgfS0rfpnFnhZU="}]},"maintainers":[{"name":"buzinas","email":"buzinas@buzinas.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/simple-scrollbar_0.3.0_1519574738096_0.31529768373188194"},"_hasShrinkwrap":false},"0.3.1":{"name":"simple-scrollbar","version":"0.3.1","description":"Very simple vanilla javascript library for creating a custom scrollbar cross-browser and cross-devices.","main":"simple-scrollbar.js","repository":{"type":"git","url":"git+https://github.com/buzinas/simple-scrollbar.git"},"keywords":["scrollbar","custom-scrollbar","tiny-scrollbar","simple-scrollbar","vanilla-js"],"author":{"name":"Vitor Buzinaro"},"license":"MIT","bugs":{"url":"https://github.com/buzinas/simple-scrollbar/issues"},"homepage":"https://github.com/buzinas/simple-scrollbar#readme","gitHead":"794a0b37eb32bc354dea4b718700e95d1fab351f","_id":"simple-scrollbar@0.3.1","_npmVersion":"5.5.1","_nodeVersion":"8.9.1","_npmUser":{"name":"buzinas","email":"buzinas@buzinas.com"},"dist":{"integrity":"sha512-Nw1eT/KGuHvXJqMp01D8DMcSmgqV5YiErhczSsFFmRcD6sqEeFkrvs9SydkhbarjBcjkHrfVsyxUf0TZ1xGIGg==","shasum":"762ef1dbd3ca02ee083dda9a4b4952659f726c0a","tarball":"https://registry.npmjs.org/simple-scrollbar/-/simple-scrollbar-0.3.1.tgz","fileCount":6,"unpackedSize":10417,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIC4CBX47UQiL2aZ5E7s/jc9B89N9QPURT9P7REGX2bEGAiEAjh9DgSIOlcAMh/3a/hnUpwbdz5aX+v71Z9Mmol6VTDw="}]},"maintainers":[{"name":"buzinas","email":"buzinas@buzinas.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/simple-scrollbar_0.3.1_1519575211043_0.49610561173530043"},"_hasShrinkwrap":false},"0.4.0":{"name":"simple-scrollbar","version":"0.4.0","description":"Very simple vanilla javascript library for creating a custom scrollbar cross-browser and cross-devices.","main":"simple-scrollbar.js","repository":{"type":"git","url":"git+https://github.com/buzinas/simple-scrollbar.git"},"keywords":["scrollbar","custom-scrollbar","tiny-scrollbar","simple-scrollbar","vanilla-js"],"author":{"name":"Vitor Buzinaro"},"license":"MIT","bugs":{"url":"https://github.com/buzinas/simple-scrollbar/issues"},"homepage":"https://github.com/buzinas/simple-scrollbar#readme","gitHead":"ec82b7639a7992c13f818ffad4815fd87a22ddd4","_id":"simple-scrollbar@0.4.0","_npmVersion":"5.5.1","_nodeVersion":"8.9.1","_npmUser":{"name":"buzinas","email":"buzinas@buzinas.com"},"dist":{"integrity":"sha512-mK4cZtoa7UdmwxxMT44kXF3SdNs+Ml/IiFTML0wDJpDi3zVRevlkiJcrZJ7vVyTKUw6OmDyijdNJecHpnd5y3w==","shasum":"cd0b7a4f8dcf7c0bb8d4c83b0ac5b0acebf2579b","tarball":"https://registry.npmjs.org/simple-scrollbar/-/simple-scrollbar-0.4.0.tgz","fileCount":6,"unpackedSize":10969,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICiQX4zxXvCEpdP/bfr3Y61bA1ItyLL33bvMEmEWcvQ7AiEA+KOXEKM4dUiGZBcoX/rdsekzDpmQ3z1ZOKuW2w6UYoc="}]},"maintainers":[{"name":"buzinas","email":"buzinas@buzinas.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/simple-scrollbar_0.4.0_1519575806423_0.2472681679761255"},"_hasShrinkwrap":false}},"readme":"# SimpleScrollbar\nVery simple vanilla javascript library for creating a custom scrollbar cross-browser and cross-devices.\n\n## Demo\nhttp://buzinas.github.io/simple-scrollbar\n\n## Benefits\n\n- Extremely lightweight (less than 1KB after gzip and minify)\n- It uses the native scroll events, so:\n  - All the events work and are smooth (mouse wheel, space, page down, page up, arrows etc).\n  - The performance is awesome!\n- No dependencies, completely vanilla Javascript!\n- RTL support (thanks to [@BabkinAleksandr](https://github.com/BabkinAleksandr))\n\n## Browser Support\n\nIt was developed for evergreen browsers, but it works both on IE10 and IE11 either.\n\nIf you want to make it works down to IE9, the only thing you need to do is to add the [classList polyfill](https://github.com/eligrey/classList.js).\n\n```HTML\n<!--[if IE 9]><script src=\"classList.min.js\"></script><![endif]-->\n```\n\n## Usage\n\nYou can use this library as a script tag, or you can import it as a npm module, eg:\n\n### CommonJS\n\n```js\nconst SimpleScrollbar = require('simple-scrollbar');\n```\n\n### ES2015 modules\n\n```js\nimport SimpleScrollbar from 'simple-scrollbar'\n```\n\n### Auto-binding\nInclude the attribute `ss-container` in any `<div>` that you want to make scrollable, and the library will turn it for you\n\n```HTML\n<div ss-container>One</div>\n<div ss-container>\n  <span>Two</span>\n</div>\n```\n\n### Manual binding\nIf you want to manually turn your div in a SimpleScrollbar, you can use the `SimpleScrollbar.initEl` method.\n\n```HTML\n<div class=\"myClass\"></div>\n\n<script>\n  var el = document.querySelector('.myClass');\n  SimpleScrollbar.initEl(el);\n</script>\n```\n\n### Dynamically added content\nIf you use some client Framework, like Angular, Aurelia, etc - or any library that includes DOMElements dynamically in your app, and you want to use the SimpleScrollbar `ss-container` attribute, you can use the `SimpleScrollbar.initAll` method, and it will turn all the elements with that attribute in a scrollable one for you.\n\n```Javascript\nvar div = document.createElement('div');\ndiv.insertAdjacentHTML('afterbegin', '<span>One</span>');\ndiv.setAttribute('ss-container', true);\n\nvar otherDiv = div.cloneNode(true);\notherDiv.querySelector('span').textContent = 'Two';\n\ndocument.body.appendChild(div);\ndocument.body.appendChild(otherDiv);\n\nSimpleScrollbar.initAll();\n```\n\n\n### RTL Support\n\nAdd `direction: rtl;` to your `<div>`'s CSS, and SimpleScrollbar will detect the direction automatically.\n\n## Credits\nInspired by yairEO's jQuery plugin ([fakescroll](https://github.com/yairEO/fakescroll))\n","maintainers":[{"name":"buzinas","email":"buzinas@buzinas.com"}],"time":{"modified":"2022-06-26T19:51:46.242Z","created":"2016-10-07T11:22:50.147Z","0.2.0":"2016-10-07T11:22:50.147Z","0.2.1":"2016-12-13T18:52:14.449Z","0.3.0":"2018-02-25T16:05:38.144Z","0.3.1":"2018-02-25T16:13:31.121Z","0.4.0":"2018-02-25T16:23:26.509Z"},"homepage":"https://github.com/buzinas/simple-scrollbar#readme","keywords":["scrollbar","custom-scrollbar","tiny-scrollbar","simple-scrollbar","vanilla-js"],"repository":{"type":"git","url":"git+https://github.com/buzinas/simple-scrollbar.git"},"author":{"name":"Vitor Buzinaro"},"bugs":{"url":"https://github.com/buzinas/simple-scrollbar/issues"},"license":"MIT","readmeFilename":"README.md"}