Try Tuts+ Premium, Get Cash Back!
Responsive Navigation: Toggle Patterns – New on Premium
plus

Responsive Navigation: Toggle Patterns – New on Premium

Tutorial Details
  • Estimated completion time: 30 mins
  • Difficulty: Intermediate
  • Topic: Responsive Web Design

Welcome to the third in a Premium series which looks at responsive navigation patterns. This tutorial will walk you through three patterns where navigation is toggled on and off to conserve space at the top of the page. It’s time to stop copying and pasting – check out today’s Premium tutorial and start understanding!

Become a Tuts+ Premium member to gain access to the whole tutorial, as well as hundreds of other advanced videos, tutorials, and courses.


The Patterns

The three patterns we’ll develop here take one of the footer patterns as their cue. If you remember, the footer anchor pattern placed the navigation at the bottom of the page and used a button at the top to quickly get to it. The downside with that pattern is your visitors jump suddenly from the top of the page to the bottom, possibly disorienting them.

The toggle patterns we’ll look at today aim to correct the downside of the footer anchor pattern. Once again we’ll start with a button to toggle the menu on and off, but we’ll eliminate the jump by opening and closing the navigation in place.

The patterns we’ll develop in this article are:

  • Toggle — The menu opens by clicking a button and closes by clicking anything off the menu
  • Multi-Toggle — Adds an accordion submenu to the basic toggle pattern
  • Toggle & Slide — Slides the submenu into place from off screen

Tuts+ Premium

The recently re-launched Tuts+ Premium is a service that provides top-tier training in a variety of creative fields. Whether you prefer books, visual training, or in depth tutorials, we have you covered. While we unfortunately can’t afford to provide the service for free, it’s only $19 a month – less than you’d spend on dinner.

We hope you’ll consider checking it out! In addition to learning a huge variety of new skills, it’s also a fantastic way to say thank you to Webdesigntuts+.

Note: Want to add some source code? Type <pre><code> before it and </code></pre> after it. Find out more
  • http://www.wordimpressed.com Devin Walker

    Nice Tut! Love the Responsive menu. The demo has a horizontal scrollbar that’s bugging me! Please get rid of that bad boy.

    • http://www.zerodegreeburn.com/play/?thegamewall.com Patrick W

      Seconded. Bit of a bad bug considering this is showcasing responsive nav!

  • Jeremy

    On the multi-toggle example it seems that the parent link href is disabled so “clicking” it only activates the subnav toggle. Is there a way to have the parent link still be able to go to a specific page and have just the arrow or other indicator activate the subnav toggle? With a main nav that has several dropdowns I’m not wanting those parent items to just be for activating the subnav. (I also downloaded the source from tutsplus and made sure that the parent link was indeed deactivated). Thanks!

  • http://twitter.com/dont_wake_me_up Kelly Dyson

    This is good timing, I’m currently toying with a few different responsive toggle nav patterns for my own site and another I’m about to start work on, but haven’t settled on one yet. I’m not a premium member so I haven’t had chance to look at the tutorial, but looking at the demo it seems that the toggle is being triggered with a checkbox that is positioned off the screen. Steven, I’d be interested to know what the rationale is behind that as it doesn’t strictly seem to be a ‘correct’ use of a checkbox.

  • Pingback: Vecka #4 | Weekly #