1.0.0 • Published 8 months ago

@frogheaven/mobile-menu v1.0.0

Weekly downloads
-
License
ISC
Repository
github
Last release
8 months ago

A module for implementing mobile menus.

The createMenu function generates a basic menu with a 5 options and no styles. The styleMenu function adds basic CSS.

If you want to create your own menus entirely from scratch and use only the dropdown function for the "more" option, the setMenuEvent function allows for that.

When creating your own menus for use with this module, be sure to implement the correct HTML classes and IDs, namely ".mobile-menu" for the menu parent div, ".mobile-menu-option" for the menu option children divs, "#more-menu" for the "more" option drown down menu parent div, and ".more-option" for the more drown down menu option children divs.

1.0.0

8 months ago