All Projects → froyog → react-touch-ripple

froyog / react-touch-ripple

Licence: MIT license
Create ripple effect from Material Design with React

Programming Languages

javascript
184084 projects - #8 most used programming language
CSS
56736 projects

Projects that are alternatives of or similar to react-touch-ripple

Primereact
The Most Complete React UI Component Library
Stars: ✭ 2,393 (+8762.96%)
Mutual labels:  ripple, ripple-effect
Ripple.js
Proper Material Design ripple effect for the web, that wouldn't interfere your elements' DOM.
Stars: ✭ 18 (-33.33%)
Mutual labels:  ripple, ripple-effect
LoadersPack-Android
Android LoadersPack - a replacement of default android material progressbar with different loaders
Stars: ✭ 119 (+340.74%)
Mutual labels:  ripple, ripple-effect
ripple-effect-click
Add ripple effect to any element you want when the click action happens ("ripple effect")
Stars: ✭ 15 (-44.44%)
Mutual labels:  ripple, ripple-effect
win95-media-player
💿 Back from 1995, and running on your website
Stars: ✭ 56 (+107.41%)
Mutual labels:  react-component
CryptoCurrency
Page to keep track of value & profits of a portfolio of cryptocurrency (based on Coinmarketcap, Bitfinex and Binance)
Stars: ✭ 27 (+0%)
Mutual labels:  ripple
react-circle-flags
🚀 A React component with a collection of 300+ minimal circular SVG country flags. Wrapper of HatScripts/circle-flags
Stars: ✭ 29 (+7.41%)
Mutual labels:  react-component
react-native-stateview
A react native wrapper view to add loading, content, error and placeholder states to your component
Stars: ✭ 28 (+3.7%)
Mutual labels:  react-component
react-carousel-minimal
React.js Responsive Minimal Carousel
Stars: ✭ 76 (+181.48%)
Mutual labels:  react-component
react-example-paginated-list-infinite-scroll
Follow a React tutorial series with three parts to build a powerful component in React.
Stars: ✭ 43 (+59.26%)
Mutual labels:  react-component
react-fusionui
☢️ Nuclear power-up for your UI.
Stars: ✭ 13 (-51.85%)
Mutual labels:  react-component
react-jsonschema-form-layout
Simple Layout Field to offer a variety possibilities to react-jsonschema-forms
Stars: ✭ 67 (+148.15%)
Mutual labels:  react-component
react-compare-slider
A slider component to compare any two React components in landscape or portrait orientation. It supports custom images, videos... and everything else.
Stars: ✭ 78 (+188.89%)
Mutual labels:  react-component
react-sweet-progress
A way to quickly add a progress bar to react app 🌈
Stars: ✭ 250 (+825.93%)
Mutual labels:  react-component
wallet-address-validator
Useful library for validation of Bitcoin, Litecoin, Ethereum and other cryptocoin addresses
Stars: ✭ 240 (+788.89%)
Mutual labels:  ripple
delete-react-zombies
CLI to search and delete unimported 🧟components in your react ⚛️ files
Stars: ✭ 70 (+159.26%)
Mutual labels:  react-component
create-chakra-icons
Transform SVGs to React Chakra UI <Icon /> ✨
Stars: ✭ 80 (+196.3%)
Mutual labels:  react-component
FFF Protocol Core
FFF as a new generation of the underlying chain technology, applying power block chain of innovation and fall to the ground, will help the industry standard. FFF consensus mechanism: the application of a new work-proof mechanism, network contribution proof mechanism, refers to the contribution ability of servers, PC and other devices to improve …
Stars: ✭ 5 (-81.48%)
Mutual labels:  ripple
RippleBackground
Ripple animation
Stars: ✭ 32 (+18.52%)
Mutual labels:  ripple
touchMyRipple
A simple library for apply the ripple effect where you want
Stars: ✭ 19 (-29.63%)
Mutual labels:  ripple

React Touch Ripple

Create ripple effect from Material Design with React

Build Status GitHub license npm

简体中文 Simplified Chinese

Install

npm install react-touch-ripple --save

Usage

Basic Usage

import Ripples from 'react-touch-ripple';

const Demo = () => (
    <Ripples>
        <button>CLICK</button>
    </Ripples>
);
ReactDOM.render(<Demos />, tree);

Custom Styles

A quick note here: <Ripples> is a box wrapping around its child component (in this case, <button>) and if you are adding styles such as box-shadow or margin, make sure you apply them directly to the wrapper component instead of the child component.

const StyledWrapperDemo = () => (
    <Ripples 
        className="deep-shadow"
        style={{ margin: '10px 0', }}
    >
        <button>CLICK</button>
    </Ripples>
);

Changing Color

The background-color of the ripples are default to currentColor. If you are to change it, pass it as a prop to <Ripples>.

const ColoredDemo = () => (
    <Ripples color="#00a1e9">
        <button>CLICK</button>
    </Ripples>
);

An important note: opacity: 0.3 is already set on the ripples. So you just need to pass in the color without an alpha.

<Ripples color="rgba(0, 109, 37, 0.5)">

This is UNNESSARY and will behave out of your expectation.

Center Ripples

Provide center property on the <Ripples> will center every ripple it created. This is usually useful when you are applying ripples on a switch or checkbox component. See demos for more information.

const RippleSwitch = () => (
    <Ripples center>
        <Switch />
    </Ripples>
);

Design Guidelines

See Choreography

License

React Touch Ripple is licensed as MIT

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].