1.0.7 • Published 3 years ago

js-show-hide v1.0.7

Weekly downloads
9
License
ISC
Repository
github
Last release
3 years ago

js-show-hide

Simple as you'd imagine:

Install

npm i js-show-hide

Initiate

import { JsShowHide } from "js-show-hide";
new JsShowHide();

Optionally pass through { hiders: 'data-foo', showers: 'data-bar' } if you want to use different data attributes

Instanciate

<div data-js-hide=".hide-these, .elements" data-js-show=".show-these"></div>
1.0.7

3 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.2

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.0

3 years ago