Skip to content
Simple wrapper around smoothscrolling.
JavaScript HTML
Find file
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
dist
src
.gitignore initial commit and even version 1.0 in it
bower.json
gruntfile.js
index.html speed is now proportional - it is smart - kind of
package.json
readme.md

readme.md

ScrollDown.js

ScrollDown.js is a simple wrapper to use for smoothscrolling. Just specify element to be clicked and element to be scrolled to and BAM! you are scrolling. (Optional speed definition as well!)

Install with bower

bower install scrolldown

And you are up and running.

Usage

To use the ScrollDown plugin just integrate it in your project along with jQuery and then in your script call its constructor like this:

scrollDown = new ScrollDown('#scroll-from', '.scroll-to', 400);

It will bind the click function on the first parameter/element/css-selector you pass in so no more finicky things needed! Just click and scroll yo!

The speed definition at the end is optional and if no parameter is passed it defaults to 400

Something went wrong with that request. Please try again.