offCanvasMenu
offCanvasMenu copied to clipboard
2 Off Canvas side bars?
Hi, Is it possible to have two Off Canvas side bars in the same page? One for the left and another for the right just like in Facebook app.
Thanks
Not at the moment, though it's a feature we've thought of implementing. Marking this issue as an enhancement so we can follow up when/if that happens.
Ok, thank you. How I make disappear the menu when we enter in the page?
From this blog comment:
The menu will not receive any custom styles until the plugin has had a chance to activate. With this in mind, there are a few ways you might prevent it from displaying initially.
The simplest way would be to hide the menu by default using CSS:
.my-menu { display: none; }
…then show it again when the plugin is active:
.off-canvas-menu .my-menu { display: block; }
You could also try reducing the time the JavaScript takes to activate by moving it higher in your source. This may slow down the overall experience, though.