Mobile first Fullscreen Navigation Plugin With jQuery Snavvy - Download Mobile-first Fullscreen Navigation Plugin With jQuery - Snavvy

Download Mobile-first Fullscreen Navigation Plugin With jQuery – Snavvy

Posted on

This time I will share jQuery Plugin and tutorial about Mobile-first Fullscreen Navigation Plugin With jQuery – Snavvy, hope it will help you in programming stack.

Mobile first Fullscreen Navigation Plugin With jQuery Snavvy - Download Mobile-first Fullscreen Navigation Plugin With jQuery - Snavvy
File Size: 6.27 KB
Views Total: 4368
Last Update:
Publish Date:
Official Website: Go to website
License: MIT
   

Snavvy is a lightweight and simple-to-use jQuery plugin for creating a mobile-friendly navigation that slides out a fullscreen, off-canvas menu covering the whole page when toggled.

How to use it:

1. To get started, you need to load jQuery library and the jQuery Snavvy plugin’s JS & CSS files in the webpage.

1 <link href="snavvy.css" rel="stylesheet" type="text/css">
2 <script src="//code.jquery.com/jquery.min.js"></script>
3 <script src="snavvy.js"></script>

2. Create a menu toggle link and the insert it together with the menu items into your webpage. In this case, we’re going to use Font Awesome 4 for the menu toggle icons.

01 <ul class = "fullmenu">
02   <li>
03     <a id="snavvy">
04     <div id="nav-icon">
05       <i class="fa fa-menu">
06     </div>
07     </a>
08   </li>
09   <div class="snavvy-links" id="snavvy-links">
10     <ul class="links">
11       <li> <a href=""> Home </a> </li>
12       <li> <a href=""> About </a> </li>
13       <li> <a href=""> Contact </a> </li>
14     </ul>
15   </div>
16 </ul>

3. Initialize the plugin and done.

1 $('#snavvy').snavvy({
2   menuItems: '#snavvy-links'
3 });

4. All plugin settings with default values.

01 $('#snavvy').snavvy({
02  
03   // 100%
04   width: 100,
05  
06   // left, right, top, bottom
07   location: 'right',
08  
09   // parent container
10   parent: 'body',
11  
12   // true or false
13   close: 'true',
14  
15   // selector for menu items
16   menuItems: null
17    
18 });

Change log:

2016-08-25

  • v1.0.2

This awesome jQuery plugin is developed by djstaff. For more Advanced Usages, please check the demo page or visit the official website.

source : jqueryscript.net