Shove Off Menu 1.0

Shove Off Menu is a light-weight off-canvas menu that was born out of the frustration over other menus. This was originally inspired by the menu pushy however it bares little resemblence now. I needed a menu that utilized css animations, was light weight, and was able to be used with Browserify. I also still wanted full control of the menu markup structure.

Usage

Currently there are very few options. To use the menu with its default settings call it on your menu element.

$('.mobile-navigation').shoveoff();

Controlling Menu Width

Shove Off uses less for its styles in order to control how far the menu opens you need only to modify @mobile-menu-width in shoveoff.less

CSS Classes and Elements

Shove Off adds a few css classes and one element in order to operate.

Elements

<div class="menu-blocker"></div>

The div with the class menu blocker fills the page where the menu is not located, it captures the mousedown and touchstart events in order to close the menu.

Classes

Fork me on GitHub