Skip to content
This repository has been archived by the owner on Jan 24, 2018. It is now read-only.

Skrollr-menu scrolls to same location based on handlelink #65

Closed
kongdesignld opened this issue Jan 22, 2015 · 0 comments
Closed

Skrollr-menu scrolls to same location based on handlelink #65

kongdesignld opened this issue Jan 22, 2015 · 0 comments

Comments

@kongdesignld
Copy link

I can't seem to get Skrollr menu to look for the actual link and animate to it. Rather, it appears that it looks at handlelink, and returns a value for how far to scroll based on that, but that's hardcoded in at 400. If I try to comment the handlelink out, the script no longer functions.

i'm hosting this online while i'm working on it as well. I'm only currently testing on the index page.
http://www.philkong.com/parallax

var s = skrollr.init();
var t = skrollr.init();

skrollr.menu.init(t, {
animate: true,
easing: 'outCubic',
scale: 2,
duration: function(currentTop, targetTop) {
return 1000;
},
handleLink: function(link) {
return 1000;
},
complexLinks: false,
});

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant