I am currently developing an angular-based website and I am looking to implement a top navigation bar similar to the one on
My goal is to have the navigation bar's width reduce when scrolling down the page. I have tried using ng-bootstrap and material design, but so far I have not been successful in achieving this effect.
Does anyone know how I can make the top navigation bar more flexible, like the one found on , where it adjusts as you scroll through the page?