test-show-menu
v1.0.2
Published
Quick drop down menu for TOP project
Downloads
2
Readme
For dropdown and burger menu
Purpose
To practice npm creation and usage. Assign an event listener which will toogle a class of an element. It works either on click or on hover. For click the last argument must be "click", for hover any other word. First argument is the element to which the event listener will be assigned. Second argument is the element for which a class will be toogled. Third argument is the class to be toogled.
Installation
npm install test-show-menu
Usage example
showClass('.burger-menu', '.nav-links', 'side-links', 'click');