Skip to content

ilyjs/react-ripples

 
 

Repository files navigation

react-ripples

Installation

$ npm install --save react-ripples

or

$ yarn add react-ripples

Demo

Live Demo

Usage

import Ripples from 'react-ripples'

render() {
  <Ripples>
    <button>Ripple Button</button>
  </Ripples>
}

API

Props

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

About

🏊 Material ripple effect. Ripples everything

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 71.3%
  • HTML 28.7%