Styling Fixed nav bar; Left nav collapse/expand (simple),


Nav bar which becomes fixed
Nav bar starts lower down, when user scrolls it scrolls up and then locks in a fixed position. If user scrolls down then it unlocks and scrolls.
Note: on iPad the scroll event does not happen until the user releases so the nav bar will not scroll progressively as on desktop browser but only once the user releases. But I think that's an ok experience.


Left nav which collapses and expands
Often seen on basic Help pages. One way to implement is as nested ul sublists which are initially hidden, then when user clicks one can use query click handler to slide/slideToggle to expand and collapse.
The trick is that the onclick page request is submitted to the browser so there must be code server side to attach a class to show the appropriate section expanded whent he page returns.


Comments

Popular posts from this blog

deep dive into Material UI TextField built by mui

angular js protractor e2e cheatsheet

react-router v6.4+ loaders, actions, forms and more