material-design-ripple
v0.1.1
Published
Material ripple animation library
Downloads
21
Maintainers
Readme
material-ripple
Provides a simple function that creates the material ripple animation clicking the given elements
MaterialRipple.set('.ripple-container');
MaterialRipple.set(['.material-button', '#cta-send'])
Demo
Install
npm install material-design-ripple
Usage
with plain js
<script src="https://unpkg.com/[email protected]/public/material-ripple.min.js"></script>
MaterialRipple.set('.ripple-container');
npm
npm install material-design-ripple
import set as makeRipple from 'material-design-ripple'; // ES6
...
makeRipple('.material-button');
Developing
Auto transpile/refresh
npm start
Build prod
npm run build:prod
Build dev
npm run build:dev
License
MIT © Viola Péter