Using Bootstrap 3 here. I'm trying to make an inverted NAVBAR that is "Static" (goes up when user scrolls down) with a SUBNAV that is loaded underneath it that will become "Fixed" when it reaches the top of the screen. If the user scrolls up again, the NAVBAR should come back. I'm not sure what you would call this.
Here's a non-working mockup of this…
Best Solution
Try this example..
http://www.bootply.com/HqtmsMHmuu
You need to use Bootstrap's affix component on your
subnav
, and update the CSS accordingly for when the.affix
is applied to the subnav.CSS
HTML
JS