Smooth Sidebar Navigation Plugin with jQuery NavSide - Download Smooth Sidebar Navigation Plugin with jQuery - NavSide

Download Smooth Sidebar Navigation Plugin with jQuery – NavSide

Posted on

This time I will share jQuery Plugin and tutorial about Smooth Sidebar Navigation Plugin with jQuery – NavSide, hope it will help you in programming stack.

Smooth Sidebar Navigation Plugin with jQuery NavSide - Download Smooth Sidebar Navigation Plugin with jQuery - NavSide
File Size: 8.96 KB
Views Total: 9621
Last Update:
Publish Date:
Official Website: Go to website
License: MIT
   

NavSide is a super lightweight jQuery sidebar navigation plugin which helps you implement a mobile app style off-canvas menu with smooth slideIn / slideOut effects on your webpage.

How to use it:

1. Include jQuery library and the jQuery NavSide plugin’s JavaScript & CSS files on the webpage.

1 <link href="css/navside.css" rel="stylesheet">
2 <script src="//code.jquery.com/jquery-2.1.4.min.js"></script>
3 <script src="js/jquery.navside.js"></script>

2. In addition, you need to include the jQuery easing plugin after jQuery library.

1 <script src="//cdnjs.cloudflare.com/ajax/libs/jquery-easing/1.3/jquery.easing.min.js"></script>

3. Create a sidebar navigation for your website.

1 <nav id="navside">
2   <ul id="sidebar-menu">
3     <li class="active"><a href="#">Home</a></li>
4     <li><a href="#"><a href="https://www.jqueryscript.net/tags.php?/Portfolio/">Portfolio</a></a></li>
5     <li><a href="#">Service</a></li>
6     <li><a href="#">Contact</a></li>
7     <li><a href="#">About</a></li>
8   </ul>
9 </nav>

4. Initialize the plugin as follow. The plugin will automatically generate a menu toggle icon inside the document. Click on the toggle icon you will see an off-canvas menu sliding out from the right side of the screen.

1 $("#navside").navside();

5. Apply your own styles to the sidebar navigation.

01 #sidebar-menu {
02   top: 0px;
03   width: 100%;
04 }
05  
06 #sidebar-menu li { border-bottom: 1px solid rgba(238, 238, 238, 0.05); }
07  
08 #sidebar-menu a {
09   text-decoration: none;
10   color: #595959;
11 }
12  
13 #sidebar-menu a:hover {
14   text-decoration: none;
15   color: #595959;
16 }

6. Default settings.

1 $("#navside").navside({
2  
3   // 'right' or 'left'
4   position         : 'right',
5  
6   // 'hidden' or 'fixed'
7   scroll           : 'hidden'
8    
9 });

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

source : jqueryscript.net