Prinzhorn / skrollr-menu

skrollr plugin for hash navigation
MIT License
285 stars 143 forks source link

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

Closed kongdesignld closed 9 years ago

kongdesignld commented 9 years ago

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, });