Ripple Button

Click-origin radial ripple expands from the exact cursor position.

Component Showcase

Ripple Button

Click-origin radial ripple expands from the exact cursor position.

GSAPRipple

Interactive Playground

Adjust sliders and values to preview changes in real-time

label

The text content displayed in the center of the button.

duration

Speed (seconds) for ripple fade out and scale animation.

rippleColor

CSS color definition applied to the expanding circular ripple.

API Reference (Props)

Component properties and type specifications

PropTypeDefaultDescription
labelstring"Click for ripple"The text content displayed in the center of the button.
durationnumber0.7Speed (seconds) for ripple fade out and scale animation.
rippleColorstring"rgba(127, 255, 94, 0.25)"CSS color definition applied to the expanding circular ripple.