Open kidwm opened 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.
Yes, I mean that.
Sorry for my poor English.
I agree, that would be helpful.
any news on this?
any news on this?
no
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.
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.