responsive overlay menu - Download Basic Responsive Overlay Menu With jQuery And CSS3

Download Basic Responsive Overlay Menu With jQuery And CSS3

Posted on

This time I will share jQuery Plugin and tutorial about Basic Responsive Overlay Menu With jQuery And CSS3, hope it will help you in programming stack.

responsive overlay menu - Download Basic Responsive Overlay Menu With jQuery And CSS3
File Size: 4.8 KB
Views Total: 3802
Last Update:
Publish Date:
Official Website: Go to website
License: MIT
   

A basic responsive menu jQuery plugin that converts the regular horizontal menu into a fullscreen overlay navigation on mobile devices.

Click the hamburger button to toggle the navigation sliding from the left or right-hand side of the screen.

Built with JavaScript (jQuery), Font Awesome, and CSS3 transitions/transforms.

How to use it:

1. Load the Font Awesome and basicResponsiveMenu.css in the head section of the document.

2 <link rel="stylesheet" href="dist/css/basicResponsiveMenu.css">

2. Create a nav list for the site navigation.

1 <nav class="response--main-navigation">
2   <ul class="response--site-menu">
3     <li><a href="#">HOME</a></li>
4     <li><a href="#">Jobs</a></li>
5     <li><a href="#">Products</a></li>
6     <li><a href="#">About</a></li>
7     <li><a href="#">Contact</a></li>
8   </ul>
9 </nav>

3. Attach the plugin to the navigation. That’s it.

1 $(function(){
2   $('.response--main-navigation').basicResponsiveMenu();
3 });

4. Enable/disable the sliding animation. Default: true.

1 $(function(){
2   $('.response--main-navigation').basicResponsiveMenu({
3     animate: true
4   });
5 });

5. Set the sliding direction. Default: right.

1 $(function(){
2   $('.response--main-navigation').basicResponsiveMenu({
3     slideDir: 'left'
4   });
5 });

6. Set the animation speed in milliseconds. Default: 250.

1 $(function(){
2   $('.response--main-navigation').basicResponsiveMenu({
3     slideSpeed: 500
4   });
5 });

7. Set the responsive breakpoint in pixels.

1 $(function(){
2   $('.response--main-navigation').basicResponsiveMenu({
3     browserWidth: 768
4   });
5 });

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

source : jquery.net