Accessible hamburger buttons without JavaScript

Burger buttons have become the de facto standard for expanding larger menus on smaller devices over the last few decades. They are so common that every user recognizes them when they appear in the top left or right corner, making them an excellent user interface element choice. They are also very simple to implement in JavaScript: listen for the button’s onclick event and add or remove a class to style the menu with CSS.

Read more…

Leave a comment

Design a site like this with WordPress.com
Get started