Like burst

Mood track «Electrodoodle» · Kevin MacLeod incompetech.com · licensed under Creative Commons BY 4.0
Example image of the style Like burst
Preview built in HTML and CSS in this style

Explosión del me gusta · Like burst · Heart burst · Like animation · Cuore che esplode

Tapping the heart makes the icon swell, fill with colour and throw out a ring and a spray of confetti while the counter ticks up by one. It turns a dull click into a tiny celebration.

Era
2015 – today
Use
Mainstream
Domain
Web / UIMotion
Mood
playfulenergetictactile
Explore

Live demo

View code
<main class="post">
  <header><i class="av"></i><div><b>Marta in cucina</b><span>2 min fa</span></div></header>
  <div class="pic"><i></i></div>
  <footer>
    <button class="like" aria-pressed="false" aria-label="Mi piace">
      <span class="ring"></span>
      <span class="dots"><i style="--a:0deg"></i><i style="--a:45deg"></i><i style="--a:90deg"></i><i style="--a:135deg"></i><i style="--a:180deg"></i><i style="--a:225deg"></i><i style="--a:270deg"></i><i style="--a:315deg"></i></span>
      <svg viewBox="0 0 24 24"><path d="M12 21s-7.5-4.6-9.6-9.2C.9 8.4 3 4.5 6.6 4.5c2.1 0 3.6 1.2 5.4 3.2 1.8-2 3.3-3.2 5.4-3.2 3.6 0 5.7 3.9 4.2 7.3C19.5 16.4 12 21 12 21z"/></svg>
    </button>
    <span class="cnt"><span class="roll"><b>128</b><b>129</b></span></span><span class="lbl">mi piace</span>
  </footer>
</main>
<script>
const b=document.querySelector('.like'),post=document.querySelector('.post');
const set=on=>{b.classList.remove('on','pop');void b.offsetWidth;b.setAttribute('aria-pressed',on);if(on)b.classList.add('on','pop');post.classList.toggle('liked',on)};
b.onclick=()=>set(!b.classList.contains('on'));
if(matchMedia('(prefers-reduced-motion: no-preference)').matches){let on=false;setInterval(()=>{on=!on;set(on)},1800)}
</script>
body{margin:0;height:100vh;display:grid;place-items:center;background:#FFF1F3;font-family:Inter,sans-serif;color:#0F1419}
.post{width:280px;max-width:90vw;background:#fff;border-radius:18px;padding:12px;box-shadow:0 20px 40px -24px #F9188055}
header{display:flex;gap:10px;align-items:center;font-size:13px}
header span{display:block;font-size:11px;color:#0F141999}
.av{width:32px;height:32px;border-radius:50%;background:linear-gradient(135deg,#FFD400,#F91880)}
.pic{height:120px;border-radius:12px;margin:10px 0;background:radial-gradient(circle at 50% 60%,#FFD400 0 18%,#fff 19% 27%,transparent 28%),radial-gradient(circle at 50% 60%,#FFB4D0 0 40%,transparent 41%),linear-gradient(135deg,#7856FF33,#FFB4D088)}
footer{display:flex;align-items:center;gap:8px;font-size:14px}
.like{position:relative;width:40px;height:40px;border:0;background:none;padding:6px;cursor:pointer}
.like svg{position:relative;width:100%;height:100%;display:block;fill:none;stroke:#0F1419;stroke-width:2}
.on svg{fill:#F91880;stroke:#F91880}
.ring{position:absolute;inset:4px;border-radius:50%;border:3px solid #F91880;opacity:0}
.dots i{position:absolute;left:50%;top:50%;width:6px;height:6px;margin:-3px;border-radius:50%;background:#F91880;opacity:0}
.dots i:nth-child(3n+2){background:#7856FF}.dots i:nth-child(3n){background:#FFD400}
.cnt{display:inline-block;height:18px;overflow:hidden;font-weight:700}
.roll{display:flex;flex-direction:column}
.roll b{height:18px;line-height:18px}
.liked .roll{transform:translateY(-18px)}
.liked .cnt{color:#F91880}
.lbl{color:#0F141999}
@media (prefers-reduced-motion:no-preference){
  .pop svg{animation:hp .7s cubic-bezier(.17,.89,.32,1.49)}
  .pop .ring{animation:ring .6s ease-out}
  .pop .dots i{animation:dot .75s cubic-bezier(.2,.8,.3,1)}
  .roll{transition:transform .35s cubic-bezier(.17,.89,.32,1.49)}
  @keyframes hp{0%{transform:scale(1)}15%{transform:scale(.6)}55%{transform:scale(1.35)}100%{transform:scale(1)}}
  @keyframes ring{0%{opacity:1;transform:scale(.2);border-width:10px}100%{opacity:0;transform:scale(1.8);border-width:0}}
  @keyframes dot{0%{opacity:1;transform:rotate(var(--a)) translateY(0) scale(1)}70%{opacity:1}100%{opacity:0;transform:rotate(var(--a)) translateY(-30px) scale(.3)}}
}

Characteristics

  • Icon squashing then bouncing past its normal scale
  • Ring expanding and fading out
  • Coloured particles thrown out radially
  • Counter rolling to the new number
  • Total duration under a second

Palette

Click a swatch to copy it

Typography

Headings · Inter Like burst

Body · Inter Tapping the heart makes the icon swell, fill with colour and throw out a ring and a spray of confetti while the counter ticks up by one. It turns a dull click into a tiny celebration.

Motion

Easing
cubic-bezier(0.17, 0.89, 0.32, 1.49) (overshoot)
Typical duration
600–900 ms in totale
Techniques
keyframes su scale, particelle con rotate e translate in raggiera, sprite sheet con steps(), Lottie, mo.js, aria-pressed sul pulsante

Accessibility (reduced motion)

The heart only changes colour and fill; no particles or bounce, the counter just updates.

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: Like burst (Explosión del me gusta).
Tapping the heart makes the icon swell, fill with colour and throw out a ring and a spray of confetti while the counter ticks up by one. It turns a dull click into a tiny celebration.
Characteristics: Icon squashing then bouncing past its normal scale, Ring expanding and fading out, Coloured particles thrown out radially, Counter rolling to the new number, Total duration under a second.
Palette: #FFF1F3, #F91880, #FFB4D0, #7856FF, #FFD400, #0F1419.
Typography: headings in Inter, body text in Inter (Google Fonts or equivalents).
Mood: playful, energetic, tactile.
Motion: easing cubic-bezier(0.17, 0.89, 0.32, 1.49) (overshoot), typical duration 600–900 ms in totale; techniques: keyframes su scale, particelle con rotate e translate in raggiera, sprite sheet con steps(), Lottie, mo.js, aria-pressed sul pulsante.
With prefers-reduced-motion: The heart only changes colour and fill; no particles or bounce, the counter just updates.
References: Animazione del cuore di Twitter (2015), libreria mo.js, animazioni Lottie per i social, pulsanti like di Instagram.

Relations

Derives from: Micro-interactionsMicro-interactionsSimilar to: ConfettiConfettiSimilar to: Lottie / RiveLottie / RiveLike burst
Derives fromSimilar toSee in the graph →

References

  • Animazione del cuore di Twitter (2015)
  • libreria mo.js
  • animazioni Lottie per i social
  • pulsanti like di Instagram