Responsive Cross platform jQuery Mega Menu Plugin megamenu js - Download Responsive Cross-platform jQuery Mega Menu Plugin - megamenu-js

Download Responsive Cross-platform jQuery Mega Menu Plugin – megamenu-js

Posted on

This time I will share jQuery Plugin and tutorial about Responsive Cross-platform jQuery Mega Menu Plugin – megamenu-js, hope it will help you in programming stack.

Responsive Cross platform jQuery Mega Menu Plugin megamenu js - Download Responsive Cross-platform jQuery Mega Menu Plugin - megamenu-js
File Size: 396 KB
Views Total: 23094
Last Update:
Publish Date:
Official Website: Go to website
License: MIT
   



megamenu-js is a lightweight, responsive, cross-browser jQuery mega menu plugin that helps you create multi-column dropdown navigation for both desktop and mobile devices.

Features:

  • Simple and fast.
  • Based on nested html list.
  • Auto collapse into a hamburger navigation in mobile view.

Basic usage:

1. Create a mega menu for your site navigation from nested html lists like this:

01 <div class="menu-container">
02   <div class="menu">
03     <ul>
04       <li><a href="#">Home</a></li>
05       <li><a href="#">Categories</a>
06         <ul>
07           <li><a href="#">Web Developement</a>
08             <ul>
09               <li><a href="#">JavaScript</a></li>
10               <li><a href="#">HTML5</a></li>
11               <li><a href="#">CSS3</a></li>
12               <li><a href="#">PHP</a></li>
13             </ul>
14           </li>
15           <li><a href="#">Graphic Design</a>
16             <ul>
17               <li><a href="#">Sketch</a></li>
18               <li><a href="#">Photoshop</a></li>
19               <li><a href="#">Illustrator</a></li>
20               <li><a href="#">Corel Draw</a></li>
21             </ul>
22           </li>
23           <li><a href="#">Programming</a>
24             <ul>
25               <li><a href="#">C++</a></li>
26               <li><a href="#">Java</a></li>
27               <li><a href="#">Python</a></li>
28             </ul>
29           </li>
30           <li><a href="#">Social</a>
31             <ul>
32               <li><a href="#"><a href="https://www.jqueryscript.net/tags.php?/Facebook/">Facebook</a></a></li>
33               <li><a href="#">Twitter</a></li>
34               <li><a href="#">Google Plus</a></li>
35               <li><a href="#">Pinterest</a></li>
36             </ul>
37           </li>
38         </ul>
39       </li>
40       <li><a href="#">About</a> </li>
41       <li><a href="#">Contact</a></li>
42     </ul>
43   </div>
44 </div>

2. Include the Ionicons Icon Font for navigation icons.

1 <link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/ionicons/2.0.1/css/ionicons.min.css">

3. Include jQuery library and the megamenu.js script at the bottom of your webpage.

1 <script src="//code.jquery.com/jquery-1.12.0.min.js"></script>
2 <script src="js/megamenu.js"></script>

4. The required CSS styles for desktop menu.

001 .menu-container {
002   width: 80%;
003   margin: 0 auto;
004   background: #3498DB;
005 }
006  
007 .menu-mobile {
008   display: none;
009   padding: 20px;
010 }
011  
012 .menu-mobile:after {
013   content: "f394";
014   font-family: "Ionicons";
015   font-size: 2.5rem;