You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jun 9, 2021. It is now read-only.
I'm using jQuery One Page Nav. Script is working fine, but i have one problem. I have on the page two height of navi (default 200px, sticky 120px) When scroll is on the top height = 200px, when scroll down = 120px.
I need adjust value 'scrollOffset' to scroll position. It requires a edit script, but my JS skills are poor. I think will be good something like:
scrollOffset is actually being removed in the next version. It's best to just use top padding and negative top margin to simulate it. Then for the first section, you can use 200, and the others 120.
I'm having a similar problem. Can you elaborate more on using top padding and negative top margin to simulate it? Im not sure to which element to add those.
Hello!
I'm using jQuery One Page Nav. Script is working fine, but i have one problem. I have on the page two height of navi (default 200px, sticky 120px) When scroll is on the top height = 200px, when scroll down = 120px.
I need adjust value 'scrollOffset' to scroll position. It requires a edit script, but my JS skills are poor. I think will be good something like:
if scrollPosition = 0
{
scrollOffset = 200
}
else
{
scrollOffset = 120
}
Helpful image:
http://oi40.tinypic.com/2vbrj49.jpg
Thanks for your reply.
Regards,
The text was updated successfully, but these errors were encountered: