1.0.3 • Published 2 years ago

@dashistrash/ripple v1.0.3

Weekly downloads
-
License
-
Repository
github
Last release
2 years ago

React ripple

Create a material-like ripple effect on any element.

Demo

You can view a demo of the component here

Component

React ripple is a component, that adds a ripple effect on any element like images, buttons and inputs. In the demo you can view an tinker with the component.

You can change the color, duration and opacity of the ripple effect.

Props

NameTypeDescription
childrenReactNodeThe children of the component
colorStringSet the color of the ripple.
durationNumberSet the duration of the ripple in miliseconds.
opacityNumberSet the opacity of the ripple.
classNamestringSet a custom class name for the ripple container.

Styling

NameSelectorDescription
Container.rippleContainerThe container of the ripple element
Ripple.rippleThe ripple itself.