simplyScroll is a scroll-tastic jQuery plugin that can animate (scroll) content either automatically or manually, horizontally or vertically, backwards or forwards.
simplyScroll is open source and dual licensed under MIT and GPL licenses. Latest version simplyScroll 2.0.5 released 10/05/12
jquery.simplyscroll.zip | 30 Kb | Recommended Complete package including CSS & buttons.png |
jquery.simplyscroll.js | 13 Kb | Source |
jquery.simplyscroll.min.js | 8 Kb | minified (uncompressed) |
simplyScroll can be configured with a number of options
Property | Default | Description |
---|---|---|
customClass | 'simply-scroll' | Class name for styling |
frameRate | 24 | Number of movements/frames per second |
speed | 1 | Number of pixels moved per frame, in 'loop' mode must be divisible by total width of scroller |
orientation | 'horizontal' | 'horizontal or 'vertical' - not to be confused with device orientation |
direction | 'forwards' | 'forwards' or 'backwards' |
auto | true | Automatic scrolling, use false for button controls |
autoMode | 'loop' | auto = true, 'loop' or 'bounce', (disables buttons) |
manualMode | 'end' | auto = false, 'loop' or 'end' (end-to-end) |
pauseOnHover | true | Pause scroll on hover (auto only) |
pauseOnTouch | true | Touch enabled devices only (auto only) |
pauseButton | false | Creates a pause button (auto only) |
startOnLoad | false | Init plugin on window.load (to allow for image loading etc) |
Notes/issues:
simplyScroll jumping? Make sure you specify images sizes or start on window load (Chrome is especially affected by this - it's just so darn fast!)
You can't use auto scrolling with buttons (yet - speed-up is a planned feature)
There's a bug in Chrome 17 (released Feb 12) that returns a false positive on a touch support test (causing hover events not to be setup), version 2.0.3 fixes this.
Any feedback or bugs should be directed to @logicbox orwill@logicbox.net. Enjoy!