Ripple Effect
A wave expanding from the exact point you clicked
Create a click ripple effect on a button. On pointer down, spawn a circle at the exact click position that expands outward and fades, like a water ripple. Implementation: the button needs position: relative and overflow: hidden. On pointerdown, compute the click position relative to the button, and add a span: absolutely positioned circle whose diameter is about 2.2x the button's largest dimension, centered on the click point (subtract half the size from the coordinates). Animate it with keyframes from transform: scale(0) at ~50% opacity to scale(1) at opacity 0, 650ms ease-out, then remove the element from the DOM (after ~650ms). Support rapid repeated clicks by keeping a list of active ripples with unique ids rather than a single element. Use the accent color for the ripple, keep the button label above it (position: relative), and skip the effect entirely when prefers-reduced-motion is enabled. Build the component, not this demo of it. - Ambient motion that IS the component may loop: a drifting background, a marquee, a spinner while something is genuinely loading. - Do not add any timer, interval, loop or script that performs a person's action by itself. No auto-hover, no auto-click, no cycling through states, no pretend submitting, no replaying the interaction on a schedule. - Every state that answers a person waits for a real event from that person. - Placeholder copy and sample content are welcome. Simulated behaviour is not.