An open API service indexing awesome lists of open source software.

https://github.com/oskarrough/rough-navtoggle

Toggle your navigation — useful for smaller screens
https://github.com/oskarrough/rough-navtoggle

Last synced: 11 months ago
JSON representation

Toggle your navigation — useful for smaller screens

Awesome Lists containing this project

README

          

# Rough: NavToggle
Component for easy, togglable (is that a word?) navigation.
For smaller screens you might want to hide your navigation behind a "Menu" button. This will help you.

## Installation
* [Bower](http://bower.io/): `bower install --save rough-navtoggle`
* Download: [zip](https://github.com/oskarrough/rough-navtoggle/zipball/master)
* Git: `git clone https://github.com/oskarrough/rough-navtoggle.git`

## Get started
1. Reference jQuery and ``
2. Reference ``
3. You will need a container with the class: `NavToggle`
4. Call the plugin using using `$('.Nav--togglable').roughNavToggle();`

## How does it work?
The script will automatically insert a styled button (to toggle the navigation) just before the navigation it self.
When the screen is small enough (decided by a mediaquery in the CSS) the nav will hide and the button will appear.

## Tips
* Compile the scss using `sass --watch rough-navtoggle.scss:rough-navtoggle.css`
* Browser support from IE9 and up (you don't need a navigation toggle for browsers without mediaquery support anyway)