-
Notifications
You must be signed in to change notification settings - Fork 517
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to make a dynamical offset_top? #260
Comments
I have same issue with you ! |
I have the same issue. My sites have a sticky menu which will show only when scrolling up. I don't know if this plugin has option to allow changing offset dynamically so it will add offset only when scrolling up with the value equal with the sticky menu height. |
You can try https://github.com/somewebmedia/hc-sticky ^^ ! |
Thank you KytoSai. Actually, I have no plan to turn to new plugin so if you have any idea for the issue on this plugin, please share. Appreciate any idea. Thanks again. |
I ran into a similar requirement. I have a sticky masthead and a sticky filter bar.
My masthead is one height before it's sticky and then shrinks when it's sticky. I discovered that you can bypass the offset_top value by changing the top style of the element:
Now, to get that calculation to run more often you can use the I'll leave it to you to figure out how to figure out which direction the user is scrolling :) |
if use 2 version header (fixed and normal , we use this javascript
|
This should be the accepted answer for any and all issues in this repository - lol |
Guys hello!
At me dynamically at a scroll the header height varies, at a scroll downwards 80px, at a scroll upwards 157px, how it is better to arrive in that case?
The text was updated successfully, but these errors were encountered: