@guyfoz77/dropdown-menu
v1.0.3
Published
A simple tool to quickly create drop down menus in your project.
Downloads
1
Readme
dropdown-menus
Use this to initilse your pages drop down menus.
Your menus should be within a container with class
menuContainer
. 1.1.menuContainer
should have the following CSS:position: relative;
Each dropdown menu should have its own container, with the class
link[number]Menu
. For example,link0Menu
,link1Menu
and so on. Each of these containers should also have the classdropDownMenu
. 2.1.dropDownMenu
should have the following css:position: absolute;
z-index: 1;
(or higher)You need to have a CSS file with the following code contained witin a
.hide
selector:display: none;
The function
dropDownActivator(action)
will initilise the nav bar.action
refers to the event listener which will bring up the menu, eg 'click' or 'hover'.