1.0.1 • Published 4 years ago
create-mobile-menu v1.0.1
What is this?
JS Module that turns your target element into menu tab if the maximum width of the viewport is no more than 700px.
Installation
npm i create-mobile-menu --save
import { makeMobileMenu } from `create-mobile-menu`
makeMobileMenu(targetButton, targetMenuList)
Your targetButton should have an id of btn-open-menu
Your targetMenuList should have a class of menu-list
Import this in your CSS file
@import 'node_modules/create-mobile-menu/style.css'