Skip to content
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

Possibility to add menu top offset #5

Open
viniciuspires opened this issue Dec 22, 2017 · 1 comment
Open

Possibility to add menu top offset #5

viniciuspires opened this issue Dec 22, 2017 · 1 comment

Comments

@viniciuspires
Copy link

I'm using angular-sticky-navigation to create some kind of "collapsing" menu feel on my app. The first menu is already fixed, and the second menu comes and sticks to the first menu, as the rest of the header disappears as the page scrolls (see images below). I wanted to set my upper menu height as an offset, so the lower menu would just stick to it when it reaches the upper menu.

It'd be great if there was a param to customize a top offset for the menu, what do you guys think?

image

^ Initial state

image

^ Starting to scroll

image

^ It passes the menu that should stick to the other

image

^ And then when it hits the top of the page it finally sticks to the other menu as I specified on my CSS class.

@danmindru
Copy link
Member

hi there @viniciuspires & happy new year!
I think it makes a lot of sense. Would the offset param be set from the 'outside' or how do you see it happening?

Feel free to start a PR meanwhile :)
Dan

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants