Adding easing parameters (obviously requires easing library). #9

Closed
wants to merge 1 commit into
from
View
3 jquery.nav.js
@@ -34,7 +34,7 @@
}
onePageNav.adjustNav($this, $par, o.currentClass);
$win.unbind('.onePageNav');
- $.scrollTo(newLoc, o.scrollSpeed, {
+ $.scrollTo(newLoc, o.scrollSpeed, o.easing, {
offset: {
top: -o.scrollOffset
},
@@ -128,6 +128,7 @@
changeHash: false,
scrollSpeed: 750,
scrollOffset: 0,
+ easing: 'easeInOutCirc',
begin: false,
end: false
};