This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script src="jquery-1.10.2.min.js" type="text/javascript"></script> | |
<script src="scrollIt.js" type="text/javascript"></script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$.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 | |
}); |
NewerOlder