zhongjie-chen / react-ripples

:swimmer: Material ripple effect. Ripples everything

Home Page:https://rwu823.github.io/react-ripples

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

:swimmer: Material ripple effect. Ripples everything

https://rwu823.github.io/react-ripples

License:MIT License


Languages

Language:JavaScript 71.5%Language:HTML 28.5%