A script for implementing navigation on a site with a normal drop-down list and with mega content.
The application is written in JQuery, html5 and ССS3 using the compiler SCSS
https://vegas-dev.github.io/vegas-nav/
npm i vgnav
or download here
<nav class="vg-nav vg-nav-lg">
<ul>
<li class="active"><a href="/">Home page</a></li>
<li class="dropdown">
<a href="#">Left dropdown</a>
<ul class="left">
...
</ul>
</li>
<li class="dropdown-mega">
<a href="#">Mega Menu</a>
<div class="dropdown-mega-container">
...
</div>
</li>
<li class="dropdown">
<a href="#">Right dropdown</a>
<ul class="right">
...
</ul>
</li>
</ul>
</nav>
$(document).ready(function () {
$('.vg-nav').vegasMenu();
})
.vg-nav-xl // Desktop and laptop
.vg-nav-lg // Tablets landscape
.vg-nav-md // Tablets portrait
.vg-nav-sm // Phone landscape
.vg-nav-xs // Phone portrait
.vg-nav-hover
<nav class="vg-nav vg-nav-md">
The menu will collapse on the tablet in portrait mode
</nav>
Author: vegas-dev
Live Demo: https://vegas-dev.github.io/vegas-nav/
GitHub: https://github.com/vegas-dev/vegas-nav
#javascript #jquery #html5 #css3