52 shaares
3 private links
3 private links
Over the last few decades hamburger buttons have become the de facto standard to expand larger menus on smaller devices. They are so ubiquitous that every user immediately knows what they are when seen in the top left or right corner, which makes them a good user interface element choice. They are also very easy to implement with JavaScript: listen to the onclick event of the button and add or remove a class so you can style the menu with CSS accordingly.