• Stars
    star
    201
  • Rank 194,491 (Top 4 %)
  • Language
    TypeScript
  • License
    MIT License
  • Created over 8 years ago
  • Updated 12 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

๐ŸŠ Material ripple effect. Ripples everything

react-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

More Repositories

1

afloat

Always on top solution, quickly install Afloat in macOS
Shell
837
star
2

stop.js

๐Ÿฆ The Promise base `setTimeout`, release your callback
JavaScript
121
star
3

react-selection

โฌœ Like the normal OS selection
JavaScript
96
star
4

sh-exec

๐Ÿ’ป Use `Template literals` write shell script made happy โค๏ธ.
TypeScript
94
star
5

liu

๐Ÿ’ซ Boshiamy Input Method in macOS ๅ˜ธ่ฆ็ฑณ่ผธๅ…ฅๆณ•
Shell
45
star
6

mark-it-down

๐Ÿ“š The modern Markdown parser, painless and all in one
JavaScript
35
star
7

delegate-to

โคด๏ธ DOM Event delegate, it works great in React and Vue
JavaScript
31
star
8

react-tag

Universal tag render, like the normal HTML <tag> but useful
JavaScript
30
star
9

see-cli

A colorful ๐ŸŒˆ cat - syntax highlight print CLI
JavaScript
26
star
10

react-hi-text

React text highlight component
JavaScript
24
star
11

react-addons-text-content

Like DOM API `Node.textContent`
JavaScript
13
star
12

vscode-bg-img

VSCode background images set
9
star
13

FFN-Ninja-Template

To help you develop on template like a ninja with flowing speed
JavaScript
9
star
14

riot-ss

Riot SVG Sprite Component
HTML
7
star
15

require-hooks

Node require hooks
JavaScript
7
star
16

midjs

A lightweight flow control for Node and Browser
JavaScript
5
star
17

riot-hi-text

The highlight text compontent for Riot.js
JavaScript
5
star
18

blog

My Blog...
4
star
19

vscode-extensions

๐Ÿ“ฆ My VSCode extensions pack.
TypeScript
3
star
20

ts-mono

TypeScript
3
star
21

FFN

JavaScript
3
star
22

path-is-root

Check if a path is root in Node
JavaScript
3
star
23

react-dev-memo

๐Ÿ— Don't let your pure component no pure.
TypeScript
3
star
24

init

Shell
2
star
25

react-lb

A React Lightbox Component
JavaScript
2
star
26

keys

๐Ÿ—๏ธ The easiest way to create key shortcut binding.
JavaScript
2
star
27

ts-jest-puppeteer

๐Ÿ” Run your tests using Jest & Puppeteer with TypeScript.
JavaScript
2
star
28

ienv

๐Ÿ’ป Is Env - Environment Detecter
TypeScript
2
star
29

idly

Detect browser idle
1
star
30

dotfiles

1
star
31

event-hero

๐ŸฑEvent Hero saves your time and life. Go home early.
JavaScript
1
star
32

ts-react

TypeScript
1
star
33

actions

My GitHub Actions
1
star
34

keycode-map

1
star
35

mono

JavaScript
1
star
36

rwu823.github.io

JavaScript
1
star
37

vue-tab

1
star
38

vue-ss

SVG sprites Component for VueJS
JavaScript
1
star
39

prive-test

HTML
1
star
40

slides

JavaScript
1
star
41

base

โœจ The infrastructure of init projects.
JavaScript
1
star
42

gatsby-starter-netlify-cms

JavaScript
1
star
43

1command-api

JavaScript
1
star
44

Hotkey

A Class for Javascript key shortcut event bind
JavaScript
1
star
45

Lesson

1
star
46

ruinum

JavaScript
1
star
47

ci-testing

JavaScript
1
star
48

fat.js

A lightest placeholder
JavaScript
1
star
49

rwu823

1
star
50

thundercore-opensea

HTML
1
star
51

js-exec-all

TypeScript
1
star
52

cv

HTML
1
star
53

nextjs-vercel

JavaScript
1
star
54

is-type-guard

๐Ÿ’‚is-type-guard - Types checking made easy
TypeScript
1
star
55

raf-pause

๐Ÿ•Set timeout in requestAnimationFrame
TypeScript
1
star