toggle-visibility-on-mouse-event

1.0.0 • Public • Published

toggle-visibility-on-mouse-event


Imported as 'toggleVisibility', the function must be called with only one argument. The argument must be an HTMLNode. The HTML node is passed to the function, the visibility status of all immediate children are toggled on/off.

Works best when used alongside 'mouseenter' and 'mouseleave' mouse events. Works well with non continuously triggered events such as 'click'. Does not work well with continuous events such as 'mouseover'.

Package Sidebar

Install

npm i toggle-visibility-on-mouse-event

Weekly Downloads

2

Version

1.0.0

License

MIT

Unpacked Size

1.73 kB

Total Files

3

Last publish

Collaborators

  • azl23635