ScrollTo - scroll below the horizontal menu

You can use this code to exclude one selector when you are using the ScrollTo action, so when you are using that action, you can make the slider calculate the menu's height into the scrolling event, so the slider / selector where you scroll won't be below your menu. Here is how the code looks like:

window.n2ScrollOffsetSelector = "selector"

You can put the codes into the Slider settings → Other tab → JavaScript Callbacks field.


First of all, find the selector of your menu. Let's say it's ".main-menu", so this is the code you should use:

window.n2ScrollOffsetSelector = ".main-menu"