1.2.0 • Published 8 years ago
material-ripple-light v1.2.0
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
1) Install Ripple
2) Require or import the ripple script
import Ripple from 'material-ripple-light'
const Ripple = require('material-ripple-light')
3) Add to the component you want to animate
<AwesomeComponent onClick={Ripple} />
4) 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.