Skip to content

Possibility to add menu top offset #5

Description

@viniciuspires

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.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions