Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

2 Off Canvas side bars? #24

Open
pedroaacunha opened this issue Sep 7, 2013 · 3 comments
Open

2 Off Canvas side bars? #24

pedroaacunha opened this issue Sep 7, 2013 · 3 comments

Comments

@pedroaacunha
Copy link

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

@tylersticka
Copy link
Member

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.

@pedroaacunha
Copy link
Author

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

@tylersticka
Copy link
Member

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants