The ripple effect. Ripples everywhere
npm install react-ripples
react-ripples
- ✅ Zero dependencies
- 🚀 Tiny and blazing fast (Pure Component)
- ⚡ Typescript and definition file supported
- 🎨 Pure CSS animation
- 🌍 SSR supported
``sh`
$ npm install --save react-ripples
or
`sh`
$ yarn add react-ripples
`jsx
import Ripples from 'react-ripples'
render() {
}
`
Extends default props without HOC
`jsx
import { createRipples } from 'react-ripples'
const MyRipples = createRipples({
color: 'purple',
during: 2200,
})
`
`javascript
static propTypes = {
during: PropTypes.number,
color: PropTypes.string,
}
static defaultProps = {
during: 600,
color: 'rgba(0, 0, 0, .3)',
}
``
| Property | Description |
| -------- | ----------------------------- |
| during | The css animate duration [ms] |
| color | The ripple's background color |