The navigation patterns for RWD
One of the most mystifying features of RWD is the navigation. It can be as simple or as complex as we want it to be.
In this section, I'm going to show you how to build three commonly used navigation patterns:
- Toggle navigation: This is based on Brad Frost's Toggle Menu demo (http://codepen.io/bradfrost/pen/sHvaz/).
- Off-Canvas or Off-Screen navigation: This is based on Austin Wulf's SitePoint Pure CSS Off-Screen Navigation Menu demo (http://codepen.io/SitePoint/pen/uIemr/).
- Flexbox-based navigation: This is our custom solution.
Before we look at the details of each, let's clarify a few features about the mentioned patterns:
Design
On small screens, all navigation patterns use the hamburger icon as a trigger except the ...
Get Mastering Responsive Web Design now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.