https://github.com/samccone/slide-header
an IOS7 style menu
https://github.com/samccone/slide-header
Last synced: 3 months ago
JSON representation
an IOS7 style menu
- Host: GitHub
- URL: https://github.com/samccone/slide-header
- Owner: samccone
- License: bsd-2-clause
- Created: 2013-09-08T01:45:08.000Z (almost 13 years ago)
- Default Branch: master
- Last Pushed: 2014-02-10T01:49:54.000Z (over 12 years ago)
- Last Synced: 2026-01-13T05:26:23.576Z (6 months ago)
- Language: CoffeeScript
- Homepage:
- Size: 220 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Slide Header
==============
A modern modular header for your site
##[demo](http://samccone.github.io/slide-header/demo/index)
####Using with angular
* include both the directive and slide-header.js file on your site
* add 'slide-header' as a dependency.
* add an attribute on one of your nodes of `slide-header`
* profit!
####API
```js
var slideHeader = new SlideHeader(document.querySelectory('header'), {options});
//with jquery
var slideHeader = new SlideHeader($('header')[0], {options});
```
#### Options
```js
mouseTrigger: //default true
```
#### API
```js
.destroy() //removes all events and shows the header
.showHeader()
.hideHeader()
```
####Developing
```npm install```
```cake build```