Skip to content

Yet Another Simple Scrollbar. A lightweight javascript library for creating customlized scrollbar.

License

Notifications You must be signed in to change notification settings

tiansh/ya-simple-scrollbar

Repository files navigation

yaSimpleScrollbar

Yet Another Simple Scrollbar. A lightweight javascript library for creating customlized scrollbar.

  • Lightweight vanilla JavaScript
  • All native events supported, smooth and sweet
  • Perfect with dynamic content
  • Good performance, without setInterval trick

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

About

Yet Another Simple Scrollbar. A lightweight javascript library for creating customlized scrollbar.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published