scale-in-menu
v1.1.1
Published
scale-in-menu toggles with click event
Downloads
2
Maintainers
Readme
What is this?
A Drop-Down-Menu toogle with animation
Installation
npm install scale-in-menu --save
Then ...
import { dropdownmenu } from 'dropdownmenu';
dropdownmenu({
duration: '300ms',
appearance: 'scale',
});
html ...
<nav>
<em class="nav-trigger"></em>
<ul>
<li>...</li>
<li>...</li>
<li>...</li>
<li>...</li>
<li>...</li>
...
</ul>
</nav>
Options
This menu supports 2 options
- duration string in seconds (s) or (ms);
- appearance scale | fromtop