Live demo here
<script src="ahk-sliding-panel.js"></script>
<div id="left-menu">
</div>
var leftMenu = new ahk_slideout({
id:"left-panel"
});
- id - string - the id of the menu
- side - on the left or right side - string - "left" or "right" - default "left"
- width - the width of the menu - string - e.g. "50%", "300px" - default "50%"
- slide_time - the amount of time it takes to appear (in seconds) - string - e.g. "1", "0.4" - default "0.5"
- z-index - the z-index of the menu - string - eg "1", "99" - default "999"
- touch_boundary - the amount of distance from the edge of the document that the user starts touching to be able to drag out the menu, gets translated to pixels - eg 10, 50 - default 100
- toggleMenu() - toggles the menu
- closeMenu() - closes the menu
- openMenu() - opens the menu