Skip to content

Instantly share code, notes, and snippets.

@cmpolis
Last active December 19, 2015 12:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cmpolis/5954639 to your computer and use it in GitHub Desktop.
Save cmpolis/5954639 to your computer and use it in GitHub Desktop.
scrollIt.js Options
$.scrollIt({
upKey: 38, // key code to navigate to the next section
downKey: 40, // key code to navigate to the previous section
easing: 'linear', // the easing function for animation
scrollTime: 600, // how long (in ms) the animation takes
activeClass: 'active', // class given to the active nav element
onPageChange: null, // function(pageIndex) that is called when page is changed
topOffset: 0 // offste (in px) for fixed top navigation
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment