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