test-show-menu

1.0.2 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i test-show-menu

Weekly Downloads

2

Version

1.0.2

License

ISC

Unpacked Size

1.45 kB

Total Files

3

Last publish

Collaborators

  • adrianbanu2000