An off-canvas sidebar component with a collection of animations and styles using CSS transitions
https://github.com/offirgolan/ember-burger-menu/compare/v3.3.3...v3.3.4
slide-shrink
renamed to squeeze
ember-burger-menu
element. It can now be accessed via .ember-burger-menu.bm-item--stack
Installing ember-burger-menu should also install ember-cli-sass and automatically create a scss file under app/styles/app.scss
with
// app/styles/app.scss
@import 'ember-burger-menu';
Using sass, you can override default variables and easily change the default behavior of ember-burger-menu. See variables.scss for a list of variables you can change.
// app/styles/app.scss
// Burger Menu Overrides
$bm-transition-duration: 0.3s;
$bm-overlay-background: rgba(0, 0, 0, 0.7);
// Import all the styles!
@import 'ember-burger-menu';
Using sass, you can import only the styles you need for the animations you use.
// Core Styles
@import 'ember-burger-menu/variables';
@import 'ember-burger-menu/structure';
// Animations
@import 'ember-burger-menu/animations/push';
@import 'ember-burger-menu/animations/menu-item/stack';
burger-menu
service as it was used to back a single menu state and no longer makes sense to have.locked
state, actions can no longer change the state of the menu.100vh
, instead it is set to 100%
. If you upgrade and your menu is no longer visible, please check the available viewport height.