Back to the library

Checkmark scale pop

Variant: Scale pop

A filled disc that scales in with a 2% overshoot, then the tick lands inside it. Faster and louder than the draw-on version: use it when the confirmation is the whole payload of the moment and you want it to feel stamped. It starts at scale(0.92), never zero — nothing in the world appears out of nothing.

successsvgmicro-interactionscale

The source

A complete HTML document. Paste it into an empty .html file and it plays — no stylesheet, script, font, or image to fetch.

<!doctype html>
<html lang="en">
  <head>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1" />
    <title>Checkmark — scale pop</title>
    <style>
      :root {
        --ivory: #faf9f5;
        --paper: #ffffff;
        --slate: #141413;
        --olive: #788c5d;
      }

      * {
        box-sizing: border-box;
        margin: 0;
        padding: 0;
      }

      body {
        min-height: 100vh;
        display: grid;
        place-items: center;
        background: var(--ivory);
        font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
        color: var(--slate);
      }

      .badge {
        width: 88px;
        height: 88px;
        display: grid;
        place-items: center;
        border-radius: 50%;
        background: var(--olive);
        /* Never from scale(0) — the disc starts at 0.92 with a trace of opacity,
           so it grows into place instead of arriving from nowhere. 200ms with a
           2% overshoot: enough spring to feel like a stamp, not a bounce. */
        animation: badge-pop 3.2s infinite;
      }

      .badge svg {
        width: 40px;
        height: 40px;
        fill: none;
        stroke: var(--paper);
        stroke-width: 3.4;
        stroke-linecap: round;
        stroke-linejoin: round;
        animation: tick-pop 3.2s infinite;
      }

      @keyframes badge-pop {
        0% {
          transform: scale(0.92);
          opacity: 0;
          animation-timing-function: cubic-bezier(0.23, 1, 0.32, 1);
        }
        5% {
          transform: scale(1.02);
          opacity: 1;
          animation-timing-function: cubic-bezier(0.23, 1, 0.32, 1);
        }
        9%,
        88% {
          transform: scale(1);
          opacity: 1;
        }
        95%,
        100% {
          transform: scale(1);
          opacity: 0;
        }
      }

      /* The tick lands a beat after the disc, so the two reads are sequential
         rather than one mush. */
      @keyframes tick-pop {
        0%,
        4% {
          transform: scale(0.9);
          opacity: 0;
          animation-timing-function: cubic-bezier(0.23, 1, 0.32, 1);
        }
        11%,
        100% {
          transform: scale(1);
          opacity: 1;
        }
      }

      @media (prefers-reduced-motion: reduce) {
        .badge,
        .badge svg {
          animation-name: fade-cycle;
          transform: none;
        }

        @keyframes fade-cycle {
          0% {
            opacity: 0;
          }
          10%,
          88% {
            opacity: 1;
          }
          96%,
          100% {
            opacity: 0;
          }
        }
      }
    </style>
  </head>
  <body>
    <div class="badge">
      <svg viewBox="0 0 40 40" role="img" aria-label="Success">
        <path d="M11 20.5 L17.5 27 L29 13" />
      </svg>
    </div>
  </body>
</html>

The variant family

Same idea, one axis moved. Compare them side by side before you commit.