bubbowrap / slide-in-nav

Slide in Navigation with jQuery made a few months ago.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Slide In Navigation v.1

A lightweight piece of jQuery to convert a desktop navigation into a mobile/tablet navigation.

SlideInNav only works for one menu per page.

This isn't for making dropdown menus on desktop. In fact, it doesn't show up on desktop at all. Use Superfish in conjunction with this one. Basically, it makes a menu slide in from the left. No options for the right yet. Check out the demo.

INSTRUCTIONS FOR USE

Uh ok, pretty straight forward. Three easy steps bros:

  1. Add class slideInNav to the nav ul (where you'd add sf-menu).
  2. then add
    right after the closing tag of your navigation (should be , if not what are you doing it's 2015).
  3. Finally, before the closing tag and above the javascript, add to close the slide-menu div.

in your HTML e.g.

<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.js"></script>
<script src="js/slideInNav.js"></script>

Then add the CSS for this after all of your other CSS in the <head> section.

<link rel="stylesheet" href="css/slideInNav.css" media="all" />

I plan to come back to this and make it way easier to implement once I get some free time; I made this little script well before I got 'okay' at javascript/jQuery.

About

Slide in Navigation with jQuery made a few months ago.


Languages

Language:CSS 75.3%Language:JavaScript 24.7%