Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dovyski/showhide.js
Small and extremely simple javascript lib to show/hide elements conditionally based on HTML data attributes
https://github.com/dovyski/showhide.js
css dom hide-elements javascript javascript-library mit showhide ui
Last synced: 3 days ago
JSON representation
Small and extremely simple javascript lib to show/hide elements conditionally based on HTML data attributes
- Host: GitHub
- URL: https://github.com/dovyski/showhide.js
- Owner: Dovyski
- License: mit
- Created: 2019-06-30T04:01:22.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2019-12-09T11:55:21.000Z (about 5 years ago)
- Last Synced: 2024-12-06T07:25:07.010Z (2 months ago)
- Topics: css, dom, hide-elements, javascript, javascript-library, mit, showhide, ui
- Language: JavaScript
- Size: 81.1 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# showhide.js
Showhide.js is a small and extremely simple, dependency-free library to show and hide elements conditionally based on HTML data attributes. It is quite useful to create simple interactions on pages without much hassle, which is ideal for prototyping.
## Getting started
### 1. Installing
Clone showhide.js repository to a folder of your choice in your web project, e.g. `/var/www/project/js`:
```
cd /var/www/project/js && git clone https://github.com/Dovyski/showhide.git showhide
```### 2. Include `showhide.js` in your HTML file
Just before the `` or `