Vibary.ai
← Vibe Coding

Like Button

The heart takes on its fill and settles once — no particle spray, no confetti.

socialfriendlyenergeticinteraction · finite · starter · ~0.4s
Interactive · click to play
Variant

The animated component in this preview is rendered from the canonical file shown here. The surrounding demo shell only provides context and is not part of the copied code.

224 lines · react + motion only
import { useState } from "react";
import { AnimatePresence, motion, useReducedMotion } from "motion/react";

/**
 * Vibary · Like Button
 *
 * The glyph fills and settles once. No particle spray: a like is the
 * cheapest action in any product, it fires dozens of times per session,

About this pattern

A like is the cheapest action in a product: it fires dozens of times per session, often twice in a row when someone changes their mind. Motion that is delightful on the first tap is exhausting on the twentieth, so this deliberately does not spray particles. The outline glyph hands over to a filled one that arrives with a single soft settle, and the count steps by one on a short vertical roll at a constant size. Everything else in the row stays still.

Liking a postFavouriting an itemUpvoting a replySaving a track

Where it shows up

Screens we drew to show where this motion usually sits. Illustrations, not captures of any product.

  • Priya Raman2hFinally got the trail loop under an hour. Four months of Tuesdays.
    12814
    Marcus Bell5hNew supplier signed. Same rate, twelve more months.
    423
    Comment thread

    The glyph fills and the count beside it steps up by one.

Related patterns