An off screen navigation item. Similar to the menu of the Facebook and Path app
npm install sioux-offscreen`` bash`
npm install sioux-offscreen
An 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.
` js
var Offscreen = require('sioux-offscreen');
var off = new Offscreen(offscreenElement, onscreenElement);
off.toggle(function () {
console.log('Toggled!');
});
`
element, the callback gets called when the animation ended
- __hide(_callback_)__: hides the offscreen element, the callback gets called when the animation ended
- __toggle(_callback_)__: toggles the state, the callback` gets called when the animation ended