0.1.1 • Published 7 years ago

material-design-ripple v0.1.1

Weekly downloads
13
License
MIT
Repository
github
Last release
7 years ago

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/material-design-ripple@0.1.0/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