Three CSS Alternatives to JavaScript Navigation
Just because a convention is popular doesn’t mean it is the only way to do things. There are often simpler, more accessible methods, especially when it comes to navigation.
Hey quick! You’ve gotta create the navigation for the site and you start working on the mobile behavior. What pattern do you choose? If you’re like most folks, it’s probably the “hamburger” menu that, when clicked, uses a little JavaScript to expand a vertical list of navigation links.
But that’s not the only option.
Depending on the context and contents of the navigation, there may be a JavaScript-free method that gets the job done while providing a more accessible experience.