sioux-offscreen
v0.0.2
Published
An off screen navigation item. Similar to the menu of the Facebook and Path app
Readme
sioux offscreen
npm install sioux-offscreenAn off screen navigation item. Similar to the menu of the Facebook and Path app. demo. It requires two part: an offscreen elem which is hidden behind the other onscreen element.
var Offscreen = require('sioux-offscreen');
var off = new Offscreen(offscreenElement, onscreenElement);
off.toggle(function () {
console.log('Toggled!');
});properties
- offscreen: the off screen DOM element
- onscreen: the forward DOM element
- hidden: Boolean, whether the offscreen element is hidden or not
methods
- show(callback): shows the
offscreenelement, thecallbackgets called when the animation ended - hide(callback): hides the
offscreenelement, thecallbackgets called when the animation ended - toggle(callback): toggles the state, the
callbackgets called when the animation ended
