Ripple Effect

Mood track «Light Thought var 2» · Kevin MacLeod incompetech.com · licensed under Creative Commons BY 4.0
Example image of the style Ripple Effect
Preview built in HTML and CSS in this style

Effetto increspatura · Efecto onda · Material ripple · Ink ripple · Onda al clic

When you tap a button, a circular wave starts at the exact click point and spreads to fill it, like a drop of ink in water. Made famous by Material Design, it instantly confirms that the touch landed.

Era
2014 – today
Use
Mainstream
Domain
Web / UIMotion
Mood
cleantactilesubtle
Explore

Live demo

View code
<main>
  <h1>Tocca un bottone</h1>
  <div class="row">
    <button class="r f">Conferma</button>
    <button class="r t">Annulla</button>
  </div>
  <div class="card r"><b>Notifiche</b><p>3 nuovi messaggi</p></div>
</main>
<script>
const els=[...document.querySelectorAll('.r')];
function ripple(el,x,y){const r=el.getBoundingClientRect(),s=Math.hypot(r.width,r.height)*2,i=document.createElement('i');
  i.style.cssText=`width:${s}px;height:${s}px;left:${x-s/2}px;top:${y-s/2}px`;el.appendChild(i);setTimeout(()=>i.remove(),900)}
if(matchMedia('(prefers-reduced-motion: no-preference)').matches){
  els.forEach(el=>el.addEventListener('pointerdown',e=>{const r=el.getBoundingClientRect();ripple(el,e.clientX-r.left,e.clientY-r.top)}));
  let k=0;setInterval(()=>{const el=els[k++%els.length];ripple(el,el.offsetWidth*(.2+Math.random()*.6),el.offsetHeight*(.3+Math.random()*.4))},1100);
}
</script>
body{margin:0;height:100vh;display:grid;place-items:center;overflow:hidden;background:#F3EDF7;color:#1D1B20;font-family:Roboto,sans-serif}
main{width:min(340px,92vw);text-align:center}
h1{font:700 22px 'Roboto Flex',sans-serif;margin:0 0 16px}
.row{display:flex;gap:10px;justify-content:center;margin-bottom:14px}
button{font:500 15px 'Roboto Flex',sans-serif;border:0;border-radius:999px;padding:12px 26px;cursor:pointer}
.f{background:#6750A4;color:#fff}
.t{background:#E8DEF8;color:#4a3a80}
.r{position:relative;overflow:hidden;isolation:isolate}
.card{background:#fff;border-radius:16px;padding:16px 18px;text-align:left;box-shadow:0 1px 3px #1D1B2026;cursor:pointer}
.card b{font:500 16px 'Roboto Flex',sans-serif}.card p{margin:4px 0 0;font-size:13px;color:#625b71}
.r i{position:absolute;border-radius:50%;background:currentColor;opacity:.24;transform:scale(0);pointer-events:none;z-index:-1;animation:rip .85s cubic-bezier(.2,0,0,1) forwards}
.card i{background:#6750A4}
@keyframes rip{60%{opacity:.24}to{transform:scale(1);opacity:0}}

Characteristics

  • Circle born at the touch point
  • Scales from 0 past the button diagonal
  • Opacity fades as the wave ends
  • Container with hidden overflow
  • Wave colour derived from the label colour

Palette

Click a swatch to copy it

Typography

Headings · Roboto Flex Ripple Effect

Body · Roboto When you tap a button, a circular wave starts at the exact click point and spreads to fill it, like a drop of ink in water. Made famous by Material Design, it instantly confirms that the touch landed.

Motion

Easing
cubic-bezier(0.2, 0, 0, 1) (Material standard)
Typical duration
400–600 ms per l'espansione, 150–250 ms per la dissolvenza
Techniques
span circolare posizionato via JavaScript, transform scale + opacity, @material/ripple, Web Animations API, radial-gradient con custom property animata

Accessibility (reduced motion)

Replace the wave with an instant background tint or a brief fade of the pressed state.

Prompt for your agent

Copy and paste into your prompt to have an agent or image generator reproduce this style.

For web pages and UI

Design the web page or interface in this style: Ripple Effect (Effetto increspatura, Efecto onda).
When you tap a button, a circular wave starts at the exact click point and spreads to fill it, like a drop of ink in water. Made famous by Material Design, it instantly confirms that the touch landed.
Characteristics: Circle born at the touch point, Scales from 0 past the button diagonal, Opacity fades as the wave ends, Container with hidden overflow, Wave colour derived from the label colour.
Palette: #F3EDF7, #6750A4, #FFFFFF, #1D1B20, #E8DEF8.
Typography: headings in Roboto Flex, body text in Roboto (Google Fonts or equivalents).
Mood: clean, tactile, subtle.
Motion: easing cubic-bezier(0.2, 0, 0, 1) (Material standard), typical duration 400–600 ms per l'espansione, 150–250 ms per la dissolvenza; techniques: span circolare posizionato via JavaScript, transform scale + opacity, @material/ripple, Web Animations API, radial-gradient con custom property animata.
With prefers-reduced-motion: Replace the wave with an instant background tint or a brief fade of the pressed state.
References: Google Material Design, Material Components «Ripple», Android touch feedback.

Relations

Derives from: Material DesignMaterial DesignSimilar to: Micro-interactionsMicro-interactionsRipple Effect
Derives fromSimilar toSee in the graph →

References

  • Google Material Design
  • Material Components «Ripple»
  • Android touch feedback