material-ripple-light
v1.2.0
Published
material ripple effect
Downloads
4
Readme
Material Ripple effect helper
Objective
Built to be as lightweight and reusable as possible, with React in mind; but will work with any framework or vanilla js.
To use in your project
Install Ripple
Require or import the ripple script
import Ripple from 'material-ripple-light'
const Ripple = require('material-ripple-light')
Add to the component you want to animate
<AwesomeComponent onClick={Ripple} />
Show off your skills by adding it to a controlled component
<ControlledComponent onclick={(e)=>{controlFunc(e), Ripple(e)}}/>
Github
Feel free to contribute to this project on Github.
Run demo
install with $ yarn
run with $ yarn start
This project was bootstrapped with Create React App.