Closed Alecto closed 7 years ago
Check out this demo
I can not use margin-top, this is not allowed in the design. As a result, the menu closes part of the section. The ideal way is to offset, but for this i need to edit the library.
It has zero impact on the design if you use a negative top margin and top padding.
I've already tried it. As I said, this method can not be applied, because in the design of the sections, template have different predefined indents, changing which is prohibited design requirements. Why do not you want to add this option to the plugin? Because I'm not the first one to whom this option is necessary.
I'm not sure what predefined indents means. I do not want to add it back to the plugin because it is more complexity to add, you can't change the value across sections, and you can't adjust it responsively. Using a CSS approach simplifies and solves all of this easily.
I need 40px offset from top. Is there any way to customize this option? Something like this $('#navbar').onePageNav({ 'scrollOffset': 117 });