dropdown-clicked-hovered
v1.0.0
Published
Two simple functions to create a dropdown menu
Downloads
6
Readme
dropdown-menu
Description
This package contains two functions to create a simple dropdown menu faster.
Each function take two arguments, "button" being the DOM part that is meant to be clicked/hovered for the content to be visible and "content" being the content to display when "button" is clicked/hovered.
The "click" function display the "content" when the "button" is clicked and hide (give it a class of hidden) when "button" is clicked again.
The "hover" function display the "content" if either the "button" or the "content" is hovered.