🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
DemoInstallSign in
Socket

ya-simple-scrollbar

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ya-simple-scrollbar

Yet another simple vanilla javascript library for creating a custom scrollbar cross-browser and cross-devices.

1.0.0
latest
Source
npm
Version published
Weekly downloads
4
Maintainers
1
Weekly downloads
 
Created
Source

SimpleScrollbar

Yet another simple vanilla javascript library for creating a custom scrollbar cross-browser and cross-devices.

  • Lightweight vanilla JavaScript
  • All native events supported, smooth and sweet
  • Perfect with dynamic content

Demo

http://tiansh.github.io/ya-simple-scrollbar

Usage

<!-- include this script in your html, first -->
<script src="./ya-simple-scrollbar.js"></script>
// then, suppose you want to add scrollbar to `#example` element...
simpleScrollbar.attach(document.getElementById('example'));
// Yes, that's all

About

This script is published under the MIT License, check LICENSE file for more detail.

Credits

This script is based on following open source scripts:

  • buzinas/simple-scrollbar
  • marcj/css-element-queries

Keywords

scrollbar

FAQs

Package last updated on 08 Mar 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts