ScrollIt.js

Usage

1) Include jQuery and scrollIt.js

2) Put a data-scroll-index attribute on each section

3) Put corresponding data-scroll-nav attributes on each nav element

4) For links to sections, put on a data-scroll-goto attribute

5) Call scrollIt()

View the source of this page for an example

Options

To customize scrollIt.js, simply pass in an options object: (defaults shown)

Credit

ScrollIt.js was created by @ChrisPolis.

Feel free to use, share and fork it. It’s on Github.

Enjoy!