$ npm install @tohmn/menu
Example:
<a href="#menu-content" data-menu-toggle>MENU</a>
<div id="menu-content" data-menu-content data-menu='{"enterFrom": right, "height": 100vw, "width": 80vh'>
Contents of the menu.
</div>
Example:
import '@tohmn/menu';
menuGenerator({
enterFrom: 'right',
});
Option | Type | Default | Description |
---|---|---|---|
enterFrom | string | top | Specify from where the menu-content should enter the screen |
This software is released under the terms of the MIT license.