Skip to content
WunderUI
All effectsButton

Tap Ripple

A ripple spreads from exactly where you tapped, confirming the press.

CSS + a few linesButton

Meant for

ButtonIcon ButtonToggleList View row

Usage

On a Button

One ripple per press, from where the press landed. It needs a few lines of JavaScript: write the point into two custom properties and restart the ripple by toggling data-wm-pressed. Without a press nothing ripples — a button that ripples on its own is not answering anybody.

The class is wm wm-tap-ripple — the first half is the marker the trigger and reduced-motion rules hook into, the second is the effect.