Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
CSS3 list scroll effects
tree: 53a2911348

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
css
js
LICENSE
README.md
index.html

README.md

stroll.js – because it scrolls, and trolls.

A collection of CSS list scroll effects. Pull requests welcome!

Curious about how this looks in action? Check out the demo page.

Usage

The style of scroll effect is determined via the class that is set on the list. Once the class is set, stroll.js needs to be told to monitor that list via the bind method:

// Bind via selectors
stroll.bind( '#main ul' );

// Bind via element reference
stroll.bind( document.getElementById( 'some-list' ) );

// Bind via array of elements / jQuery object
stroll.bind( $( '#main .some-list' ) );

To disable the effect on an already bound list you can use the unbind method:

// Same target options as stroll.bind
stroll.unbind( selector/element/array );

Contributors

License

MIT licensed

Copyright (C) 2011 Hakim El Hattab, http://hakim.se

Something went wrong with that request. Please try again.