package
Paper ripple animations inspired by Google Material Design.
npm install react-paper-rippleGitHub-flavored package documentation.
Across all versions.
Download trend unavailable.
Runtime metadata.
Tagged topics.
Paper ripple animations inspired by Google Material Design.
npm install react-paper-ripple --save
<script src="https://unpkg.com/react-paper-ripple/dist/react-paper-ripple.js"></script>
(UMD library exposed as `ReactPaperRipple`)import PaperRipple from 'react-paper-ripple'
class App extends Component {
render() {
return (
<section>
<PaperRipple color="#f55c03" center className="btn btn-circle btn-red">
<i className="icon fa fa-bomb"/>
</PaperRipple>
<PaperRipple color="#03c8f5" center className="btn btn-circle btn-blue">
<i className="icon fa fa-diamond"/>
</PaperRipple>
<PaperRipple color="#f55c03" center className=
tag: PropTypes.stringThe wrapping element around your element. Defaults to div. Any other valid props like className will be passed to this element.
color: PropTypes.stringThe color of the wave. Passed as backgroundColor to private Wave component.
opacity: PropTypes.numberThe opacity of the waves container.
growRatio: PropTypes.numberThe amount the wave should grow compared to the biggest axis of the element.
center: PropTypes.numberPosition the wave in the center of the element.
rmConfig: React.PropTypes.objectOf(React.PropTypes.number)Pass in any valid React Motion config object.
clone repo
git clone git@github.com:souporserious/react-paper-ripple.git
move into folder
cd ~/react-paper-ripple
install dependencies
npm install
run dev mode
npm run dev
open your browser and visit: http://localhost:8080/
Estimated unpacked size across 10 packages.
152.3 kB
Includes dependencies.
3 direct dependencies.