html - Shrink navbar while scrolling down using Bootstrap 3 -
I am using Bootstrap 3 for the development of a website. I need to create a navbar which should be as small as the user's scroll down.
Something like this -
How can I make it? I'm using a fixed-top example of bootstrap as the starting point -
I need to put a logo on the left instead of the text and reduce its size as the user scroll down. !
Thanks in advance.
A good example of scrolling is here:
$ (Window) .scroll (function () {if ($ (document) .scrollTop ()> 50) {$ ('nav') AddClass ('shrink');} else {$ ('NAV'). Class ('shrink');}});
Comments
Post a Comment