Documentation

Component: Ripple Effect Click wave animation for buttons and UI elements

The Ripple Effect component creates a wave animation when the user clicks an element. It improves interaction feedback and works perfectly for buttons, cards, navigation items, and other interactive UI elements.

What the Ripple Effect module does

This module creates a ripple animation that expands from the click position inside the element.

  • Creates ripple animation on click
  • Automatically positions ripple at click location
  • Removes ripple element after animation
  • Supports single ripple mode
Files location
HTML / SCSS / JS files live in: src/components/ui/ripple/

Basic usage

Add the attribute data-anim-ripple to any clickable element.

Basic ripple button
<button data-anim-ripple>
	Button
</button>

Single ripple mode

By default, multiple ripples can appear simultaneously. To allow only one ripple element at a time, use the value once.

  • data-anim-ripple="once"
Single ripple example
<button data-anim-ripple="once">
	Button
</button>

How the ripple animation works

  1. User clicks the element
  2. Ripple <span> element is created
  3. Ripple is positioned at click coordinates
  4. CSS animation expands the ripple
  5. Ripple element is removed automatically

Download

Add beautiful interaction feedback to your UI with a simple ripple animation.