Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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 `