Download
User Rating: 0/5 ( 0 votes)
BigSlide is a teeny tiny (~1kb compressed) jQuery plugin for creating off-screen slide panel navigation.
It will slide the navigation panel as well as any containers given the .push class (or a class of your choosing in the settings).
Source: ascott1.github.io
1. INCLUDE JS FILES
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
<script src="jquery.big-slide.js"></script>
2. HTML
In your document, include a link to toggle the navigation:
<a href="#menu" class="menu-link">☰</a>
And your nav menu:
<nav id="menu" class="panel" role="navigation">
<ul>
<li><a href="#">Home</a></li>
<li><a href="#">The Ballad of El Goodo</a></li>
<li><a href="#">Thirteen</a></li>
<li><a href="#">September Gurls</a></li>
<li><a href="#">What's Going Ahn</a></li>
</ul>
</nav>
3. JAVASCRIPT
$(document).ready(function() {
$('.menu-link').bigSlide();
});
4. OPTIONS
Variable |
Default Value |
Description |
menu |
('#menu') |
The attribute ID of the navigation menu |
push |
('.push') |
The class given to additional elements to 'push' when the nav is toggled |
side |
left |
The side of the navigation menu (either 'right' or 'left') |
menuWidth |
15.6em |
The width of the navigation menu |
speed |
300 |
The speed (in milliseconds) of the navigation menu |