js-show-hide
v1.0.7
Published
Simple as you'd imagine
Downloads
1
Readme
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>