-
Notifications
You must be signed in to change notification settings - Fork 826
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
responsive offset #257
Comments
you should be able to simply set the offset property of your headroom instance: var hr = new Headroom(element);
hr.init();
window.addEventListener("resize", function(e) {
hr.offset = getOffsetValue();
}, false); |
I'm having trouble getting this to work. It seems to be returning the correct value on window resize but it's not getting applied to the headroom offset.
|
Same problem here. Did anybody achieve this in the end? Thanks for your help! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
hey there,
thanks for this cool plugin.
I have an issue with responsive offset. can't update the offset on window resize.
I stored the offset value, that is height of an element, in a variable. and update that variable on window resize.
but the offset is what is set in the initial. and it won't change on window resize.
is there anything that I can do for this?
thanks
The text was updated successfully, but these errors were encountered: