Fixed menus that will slide out from the sides of the page and in case of the right and left side optionally move the body.
Inspired by this Codrops article
ember install ember-slide-push-menu
export default Ember.Controller.extend({
showLeftSlideMenu: false,
actions: {
toggleMenu(key) {
this.toggleProperty('showLeftSlideMenu');
},
}
});
/* Custom classes */
.my-custom-menu {
background: red;
}
.my-custom-menu h3 {
color: yellow;
font-size: 1.9em;
padding: 20px;
margin: 0;
font-weight: 300;
background: maroon;
}
.my-custom-menu a {
display: block;
color: yellow;
font-size: 1.1em;
font-weight: 300;
}
.my-custom-menu a:hover {
background: lightred;
}
.my-custom-menu a:active {
background: maroon;
color: pink;
}
ember serve
- Visit your app at http://localhost:4200.
npm test
(Runsember try:each
to test your addon against multiple Ember versions)ember test
ember test --server
ember build
For more information on using ember-cli, visit https://ember-cli.com/.