It would be great if my website's menu could automatically minimize its height when I scroll down. For instance, my header is fixed at the top with a height of 150px. However, when I scroll down, I would like it to resize to a height of 50px.
I am currently using bootstrap 3, which means that the class for my header is .navbar .navbar-fixed-top .
Does anyone know how I can achieve this effect?