-
Hamburger Menu With Bulma and Hyperscript
2023-07-27 "As part of a larger overhaul, I recently redid the navigation for this site and switched the CSS framework from Semantic UI to Bulma. The main reasons are that I find Bulma requires simpler HTML, and that it has no included JavaScript dependencies. JavaScript is needed for some features though, one of them being the burger menu.
Bulma has a
"navbar
component that automatically adapts to touchscreen devices by hiding thenavbar-menu
item. It also supplies a burger menu item,navbar-burger
, that is shown when thenavbar-menu
is hidden.