offCanvasMenu icon indicating copy to clipboard operation
offCanvasMenu copied to clipboard

2 Off Canvas side bars?

Open pedroaacunha opened this issue 11 years ago • 3 comments

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

pedroaacunha avatar Sep 07 '13 22:09 pedroaacunha

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.

tylersticka avatar Sep 09 '13 16:09 tylersticka

Ok, thank you. How I make disappear the menu when we enter in the page?

pedroaacunha avatar Sep 09 '13 18:09 pedroaacunha

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.

tylersticka avatar Sep 09 '13 18:09 tylersticka