🔔 Alert..!! Get 2 Month Free Cloud Hosting With $200 Bonus From Digital Ocean ACTIVATE DEAL

A simple clean, alternative, responsive jQuery navigation plugin that converts a standard menu into a drop down toggle menu on mobile devices.

mobile-menu toggle-menu responsive-menu

Documentation

Responsive Mobile Toggle Menu v2.3

A mobile first, responsive, CSS toggle menu with jQuery enhancements. N.b. jQuery is used to enhance demo1 and demo2 by hiding menu on refresh but is not required which provides the user with a decent fallback :)

Menu Usage

###HTML

   <nav class="mainMenu"> <!-- "nav" is an HTML5 element, you can use div if required or https://github.com/aFarkas/html5shiv to force support in ie7 and ie8 -->       <label for="toggle" class="menu-title">Menu</label>       <input type="checkbox" id="toggle" />       <ul>         <li><a href="#">Home</a></li>         <li><a href="#">About</a></li>         <li><a href="#">Blog</a></li>         <li><a href="#">Contact</a></li>       </ul>     </nav> 

###CSS Link to menu.css in the <head> of your HTML document.

JQuery Enhancement

menu.min.js/menu.js **responsiveMenu() ** This adds animations and resets the mobile menu to closed on refresh. It is not required for the functionality purposes. **forceUncheck() ** This function should be called if you wish the menu to be forced closed after clicking an item. It is not required for the functionality purposes. **toggleChildren() ** This function allows children to be toggled on mobile. It creates the functionality on mobile but is progressively enhanced to work without JS enabled.

Browser Support - TBC

  • Chrome 16.0+
  • Safari 5.1+
  • Firefox 4.0+
  • IE9 +
  • iOS 6.0+
  • Android 3+

Internet Explorer 8 and 7 do not support media queries but an IE specific stylesheet (ie.css) is included to provide a desktop fallback.

Version History

  • Version 2.3 Use transform CSS for toggle image instead of two images
  • Version 2.2 Reworking the demo3 CSS/JQuery Single child menu
  • Version 2.1 - Added SVG Support, fixed menu height bug now 100% and added variables to menu.js for easier management
  • Version 2.0 - Restructured CSS and added support for child pages
  • Version 1.2.1 - Added bug fix for older Android browser < 4.3
  • Version 1.2 - Added function to force close the menu after clicking a menu link
  • Version 1.1 - Removed transitions and added JQuery Animation and on reload bug
  • Version 1.0 - CSS transitions

Author: www.danielle.vautier.co.uk I take no responsibility for your code.

License

The MIT License (MIT) Copyright (c) 2013

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.


You May Also Like