Skip to main content
ExodeUI

EXODEUI DESKTOP

A little space for good ideas.

Choose your platform to get the official ExodeUI installer.

Looking for Intel Mac or other builds? Explore the web studio or check all download options.

Prefer the browser? Try for free in your browser →
UI Patterns1 min read·Updated November 2026·By the ExodeUI team

Like Button Animation: Instant, Satisfying and Reversible

How to design a like or heart button animation: instant optimistic feedback, the pop, counts, undo, accessibility and handling network failure.

Direct Summary & Definition

Core Takeaway

A like button should respond the instant it is tapped, with a short pop or burst that makes the action feel satisfying, and update the count optimistically before the server confirms. Make un-liking quieter than liking, roll back clearly if the request fails, and expose the state as a toggle button so assistive technology knows whether it is pressed.

Instant and optimistic

Liking is low-risk and frequent, so do not wait for the server. Change the icon and count immediately, send the request in the background, and roll back if it fails. This "optimistic update" approach is what makes social apps feel fast.

Anatomy of a good like animation

Most well-known like animations combine a few small parts, all within roughly half a second:

  • A quick squash or scale-down on press
  • A pop back with slight overshoot as it fills
  • Optional particles or a burst for extra delight
  • A count that ticks up rather than jumping

Unlike is quieter

Removing a like should be fast and calm: the heart empties without fireworks. Asymmetric feedback reflects that one action is a celebration and the other is a correction.

Accessibility and failure

Use a real button with aria-pressed (or the platform's toggle equivalent) and a label like "Like". If the network request fails, revert the state and show a small message. Under reduced motion, keep the colour change and drop the burst.

Building this in ExodeUI

In ExodeUI, which we make, the like button is a component with liked and not-liked states and spring physics for the pop. Your code sets the state optimistically and reverts it if the request fails; our jelly button is a good starting point.

Key Principles to Remember

  • Respond instantly and update optimistically
  • Squash, pop with overshoot, optional burst, ticking count
  • Make unlike quieter than like
  • Use aria-pressed and roll back on failure

Frequently Asked Questions

Sources

  1. Microinteractions in User Experience — Nielsen Norman Group
  2. Response Times: The 3 Important Limits — Nielsen Norman Group
  3. Understanding SC 2.3.3: Animation from Interactions — W3C WAI

Related Guides & Examples

A springy button to start from

The jelly button squashes and springs back with states your code sets.

Open the jelly button
Try for free