RS Slide Menu
Simple slide menu, without deps
Example
Installation
npm install rs-slide-menu
Usage
Markup
Shop About Contacts Open
Styles
Options
Default options
Option | Type | Description |
---|---|---|
toggler | string | css selector of togglers |
prefix | string | prefix to all class names |
side | string ('left', 'right') | which side show menu |
zIndex | number | z-index of menu |
bgColor | string | color of backdrop |
bgOpacity | string | opacity of backdrop |
animation | object | animation params |
duration | string/number | transition duration in ms |
easing | string | transition timing function |
Lint and build (for developers)
npm run lint
npm run build
License
Released under the MIT License. See the bundled LICENSE
file for
details.