프로젝트
GitHub에서 보기
rwu823/react-ripples
소개
:swimmer: Material ripple effect. Ripples everything
웹 및 앱 개발측정된 스타 증가
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- 0
- in 1 month
- 기록 수집 중
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
Originalreact-ripples
Material ripple effect, ripples everywhere
Live Demo
Attraction
- ✅ Zero dependencies
- 🚀 Tiny and blazing fast (Pure Component)
- ⚡ Typescript and definition file supported
- 🎨 Pure CSS animation
- 🌍 SSR supported
Installation
$ npm install --save react-ripples
or
$ yarn add react-ripples
Usage
import Ripples from 'react-ripples'
render() {
<Ripples>
<button>Ripple Button</button>
</Ripples>
}
API
createRipples([defaultProps])
Extends default props without HOC
import { createRipples } from 'react-ripples'
const MyRipples = createRipples({
color: 'purple',
during: 2200,
})
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 |
관련 프로젝트 살펴보기
불러오는 중…