Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
MooTools Scrollbar class (extends Slider)
JavaScript
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
Demos
Docs
Source
LICENSE
README.md
package.yml

README.md

MooTools Scrollbar

A simple Apple-style productbrowser (extends Slider) for MooTools 1.3.x.

Screenshot

Features

  • mouse wheel support
  • Animated scrolling
  • Flexible
  • Lightweight
  • Cross-Browser Compatible

Submit examples on the wiki

If you have a working scrollbar online add your link to github.com/eerne/scrollbar/wiki

How to use

var myProductbrowser = new ScrollBar('products', 'bar', 'knob'[, options]);

First argument should contain an element with an overflow, for example all your products. Bar and knob are used for the Slider instance.

Options

see Slider

Additional

  • scroll: (Object) options for the container's Tween instance
  • knob: (Object) options for the slider knob's Tween instance, see Fx and Fx.Tween

Todo

  • code review
  • discuss API

Changelog

  • removed Fx.Scroll dependency
  • updated to MooTools 1.3 (without compatibility)
  • added mouse wheel support
  • backported to MooTools 1.11
  • added to MooTools 1.3 ßeta 1 example
Something went wrong with that request. Please try again.