1.0.7 • Published 4 years ago

js-show-hide v1.0.7

Weekly downloads
9
License
ISC
Repository
github
Last release
4 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

4 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.2

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.0

4 years ago