Prinzhorn / skrollr-menu

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

support setting offset in option #14

Open kidwm opened 11 years ago

kidwm commented 11 years ago

If the height of fixed navigation menu alway be 100px, that would be handy.

skrollr.menu.init(s, { animate: true, offset: -100} )

or a function just like duration does, the height of fixed navigation menu could be changed with scrolling.

Prinzhorn commented 11 years ago

Do you want to set data-menu-offset globally using an option instead of per element? Just want to make sure I understand you. Shouldn't be a big thing to implement.

kidwm commented 11 years ago

Yes, I mean that.

Sorry for my poor English.

ischerer commented 11 years ago

I agree, that would be helpful.

chris-mackie commented 10 years ago

any news on this?

Prinzhorn commented 10 years ago

any news on this?

no

wuuti commented 9 years ago

Enhancement: add another init-option like offsetContainer: <id-of-container> where you can place the id of the menu element describing the offset If the height of that element e.g. changes (by media query or scrollr), use the new height as offset. This would make it supereasy to handle with menubars at the top.