I'm using bootstrap in my code
You have a class in% of the bootstrap setting nav
on top
navbar-fixed-top
But I want nav
to only be fixed when the scroll passes through it.
How do I do this?
An example: This site
I'm using bootstrap in my code
You have a class in% of the bootstrap setting nav
on top
navbar-fixed-top
But I want nav
to only be fixed when the scroll passes through it.
How do I do this?
An example: This site
I think there is a plugin able to do this already in bootstrap, affix, does not need any javascript as far as I know.
The side menu is an example of using affix
I found a snippet in Bootsnipp Navbar Affix