* * * ## Demo Try Liquifys filter by visiting the [GitHub Pages](https://seeren.github.io/liquify-js/dist/). * * * ## Install Install with npm. ```bash npm install liquify-js ``` Include JavaScript file as bundle. ```html ``` * * * ## 💧 Usage Add `data-liquify` custom attribute to an HTMLElement. Without value the attribute apply the filter "infinite" with default settings. ```html
- The filter `click` trigger the effect when a click is emit ```html
- The filter `move` trigger the effect when a mouse move is emit ```html
The document can be upgraded programmatically. ```js window.Liquify.upgrade() ``` The `upgrade` method provide a Promise. ```js window.Liquify .upgrade() .then((() => console.log('DOM Liquified'))) ``` * * * ## ⚙️ Options Options `frequency`, `degree` and `amplitude` can be configured using attributes. ```html