1.0.2 • Published 3 years ago

test-show-menu v1.0.2

Weekly downloads
7
License
ISC
Repository
-
Last release
3 years ago

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');
1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago