Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

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

Closed
wants to merge 1 commit into from

1 participant

Andrew Martin
Andrew Martin

Great plugin, just thought easing might be a nice plus.

Andrew Martin

My bad, I need to edit this fork...I broke the location hash with that parameter (just put it in with the wrong syntax).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
This page is out of date. Refresh to see the latest.
Showing with 2 additions and 1 deletion.
  1. +2 −1  jquery.nav.js
3  jquery.nav.js
View
@@ -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
};
Something went wrong with that request. Please try again.