Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Request: Sticky navbar affixed to container on scroll #49

Closed
rdhar opened this issue Aug 14, 2018 · 5 comments
Closed

Request: Sticky navbar affixed to container on scroll #49

rdhar opened this issue Aug 14, 2018 · 5 comments
Milestone

Comments

@rdhar
Copy link

rdhar commented Aug 14, 2018

Is your feature request related to a problem? Please describe.
Following the introduction of the Fixed Navbar feature by issue #326, would it be possible to include a sticky navbar which affixes to the top/bottom of its container upon reaching a certain scroll threshold? Optionally, it could be expanded upon to hide the navbar on scroll down and reveal upon scrolling up?

Describe the solution you'd like

Describe alternatives you've considered

  • Mini.css - Landing Page
    Nav bar sticks to the top of the viewport on both desktop and mobile devices alike.
  • Ant Design - Affix
    A more granular breakdown and demonstration of the sticky navbar behaviour.
  • Headroom.js (optional)
    Admittedly, this is a script but the implementation of the "smart" sticky navbar is very smooth and would be ideal to target, if at all possible. More than happy for this to be offloaded to a separate issue/request if that makes feature management easier.

Thanks for your time and I really appreciate your suggestion to create this ticket from the original issue #2051. Hope you have a great day!

@VizuaaLOG
Copy link
Owner

Thank you for your suggestion and detailed issue. I'll look at getting this implemented in a future version.

@VizuaaLOG VizuaaLOG added this to the 0.7.0 milestone Oct 8, 2018
VizuaaLOG pushed a commit that referenced this issue Oct 14, 2018
VizuaaLOG pushed a commit that referenced this issue Oct 14, 2018
* Add sticky functionality to the navbar, allows an offset before the navbar sticks #49

* Hide the navbar on scroll #49

* Fix typos

* Remove console (lint fixes)
@VizuaaLOG
Copy link
Owner

Feature added in master will be included in the next release.

@rdhar
Copy link
Author

rdhar commented Feb 11, 2019

Thank you!

VizuaaLOG pushed a commit that referenced this issue Jun 23, 2019
* Add sticky functionality to the navbar, allows an offset before the navbar sticks #49

* Hide the navbar on scroll #49

* Fix typos

* Remove console (lint fixes)
@stevefrench39
Copy link

Could you point me in the direction of a working implementation of this?

@VizuaaLOG
Copy link
Owner

VizuaaLOG commented Nov 20, 2019

Hey @networkchimp,

The BulmsJS's documentation navbar uses the sticky feature, without the auto-hiding etc. The docs can be found at https://bulmajs.tomerbe.co.uk/docs/0.10/2-core-components/navbar/

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

No branches or pull requests

3 participants