Back to the library

Small circle join, single beat

Variant: Single beat

A confirmation for joining a small, capped group. A marked pebble drops into its reserved slot in a bounded pool of different-shaped members, a ripple spreads from where it lands, and the member count and status line update. In this version everything moves in one 192ms beat, so it fits a join button that should feel instant. The pebble starts at scale(0.94) and 10px above its slot, so it reads as settling into place instead of popping out of nothing.

confirmationjoinripplecount-swapfeedback

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>Small circle join — single beat</title>
<style>
:root {
  /* Neutrals — fixed, never remixed. */
  --ivory: #faf9f5;
  --paper: #ffffff;
  --oat: #e3dacc;
  --slate: #141413;

  /* Knobs — the remix API. A knob exists iff declared here and used below. */
  --hue: 38.8;
  --lift: 0;
  --chroma: 1;
  --round: 1; /* include ONLY if at least one border-radius is wrapped below */
  --speed: 1;

  /* Accents — derived from the knobs with the family's offsets baked in,
     so one hue roll moves them together. Defaults reproduce the original hex
     (#d97757 / #b85c3e / #788c5d / #b04a3f). */
  --clay: oklch(calc(0.6724 + var(--lift)) calc(0.1308 * var(--chroma)) var(--hue));
  --clay-d: oklch(calc(0.5797 + var(--lift)) calc(0.127 * var(--chroma)) var(--hue));
  --olive: oklch(calc(0.6118 + var(--lift)) calc(0.0713 * var(--chroma)) calc(var(--hue) + 88.3));
  --rust: oklch(calc(0.5408 + var(--lift)) calc(0.1357 * var(--chroma)) calc(var(--hue) - 10.3));

  /* Clock — every duration in the document runs off --t. */
  --cycle: 3.2s; /* the authored master loop */
  --t: calc(var(--cycle) / var(--speed));

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1); /* include only if used */
}

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

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

.card {
  width: min(320px, 88vw);
  padding: clamp(14px, 4vw, 18px);
  background: var(--paper);
  border: 1px solid var(--oat);
  border-radius: calc(16px * var(--round));
  display: grid;
  gap: clamp(10px, 3vw, 14px);
}

.head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; }
.title { font-size: clamp(13px, 3.8vw, 15px); font-weight: 600; letter-spacing: -0.01em; }
.meta, .count { font-size: 12px; color: color-mix(in oklch, var(--slate) 55%, var(--paper)); }
.meta { margin-top: 2px; }
.count { display: grid; justify-items: end; }

.num {
  display: inline-grid;
  font-size: clamp(18px, 5.4vw, 22px);
  font-weight: 600;
  line-height: 1.15;
  color: var(--slate);
  font-variant-numeric: tabular-nums;
  clip-path: inset(0);
}
.num > span { grid-area: 1 / 1; }

.pool {
  position: relative;
  height: clamp(84px, 27vw, 112px);
  border-radius: calc(14px * var(--round));
  background: radial-gradient(120% 90% at 30% 20%,
    color-mix(in oklch, var(--olive) 8%, var(--paper)),
    color-mix(in oklch, var(--olive) 22%, var(--ivory)));
  box-shadow: inset 0 0 0 1px color-mix(in oklch, var(--olive) 30%, var(--paper));
  overflow: hidden;
}
.pool i, .slot, .ripple, .you { position: absolute; display: block; }

.r1 { left: 10%; top: 28%; width: 18px; height: 18px; border-radius: 50%; background: var(--clay); }
.r2 { left: 26%; top: 60%; width: 28px; height: 11px; border-radius: 999px; background: var(--olive); transform: rotate(-18deg); }
.r3 { left: 72%; top: 16%; width: 20px; height: 20px; border-radius: 50%; border: 3px solid var(--clay-d); }
.r4 { left: 85%; top: 58%; width: 13px; height: 13px; border-radius: calc(3px * var(--round)); background: var(--rust); transform: rotate(45deg); }
.r5 { left: 23%; top: 16%; width: 7px; height: 7px; border-radius: 50%; background: var(--olive); }
.r6 { left: 45%; top: 74%; width: 6px; height: 6px; border-radius: 50%; background: var(--clay-d); }
.r7 { left: 42%; top: 16%; width: 8px; height: 18px; border-radius: 999px; background: var(--rust); transform: rotate(24deg); }
.r8 { left: 8%; top: 68%; width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--olive); }

.slot, .ripple, .you {
  left: calc(62% - 13px);
  top: calc(50% - 13px);
  width: 26px;
  height: 26px;
  border-radius: 50%;
}
.slot { border: 1.5px dashed color-mix(in oklch, var(--slate) 28%, var(--paper)); }
.ripple { border: 1.5px solid var(--clay); opacity: 0; }
.you {
  background: radial-gradient(circle, var(--paper) 0 3px, var(--clay) 3.5px);
  box-shadow: 0 0 0 2px var(--paper);
}

.foot { font-size: clamp(12px, 3.4vw, 13px); }
.status { display: inline-grid; clip-path: inset(-2px 0); }
.status > span { grid-area: 1 / 1; display: inline-flex; align-items: center; gap: 8px; }
.status i { width: 7px; height: 7px; border-radius: 50%; }
.s-old { color: color-mix(in oklch, var(--slate) 55%, var(--paper)); }
.s-old i { background: var(--oat); }
.s-new i { background: var(--olive); }

/* One beat: pebble, ripple, count and status all start together and land within 6% of the loop (192ms). */
.you { animation: arrive var(--t) var(--ease-out) infinite both; }
.ripple { animation: ring var(--t) var(--ease-out) infinite both; }
.n-new, .s-new { animation: rise-in var(--t) var(--ease-out) infinite both; }
.n-old, .s-old { animation: leave-up var(--t) var(--ease-out) infinite both; }

@keyframes arrive {
  0%, 20% { opacity: 0; transform: translateY(-10px) scale(0.94); }
  26%, 88% { opacity: 1; transform: none; }
  92%, 100% { opacity: 0; transform: scale(0.96); }
}
@keyframes ring {
  0%, 20% { opacity: 0; transform: scale(0.8); }
  21.5% { opacity: 0.5; }
  32%, 100% { opacity: 0; transform: scale(2.6); }
}
@keyframes rise-in {
  0%, 20% { opacity: 0; transform: translateY(60%); }
  26%, 88% { opacity: 1; transform: none; }
  92%, 100% { opacity: 0; transform: none; }
}
@keyframes leave-up {
  0%, 20% { opacity: 1; transform: none; }
  26%, 88% { opacity: 0; transform: translateY(-60%); }
  92%, 100% { opacity: 1; transform: none; }
}

@keyframes arrive-soft {
  0%, 20% { opacity: 0; }
  26%, 88% { opacity: 1; }
  92%, 100% { opacity: 0; }
}
@keyframes leave-soft {
  0%, 20% { opacity: 1; }
  26%, 88% { opacity: 0; }
  92%, 100% { opacity: 1; }
}
@keyframes ring-soft {
  0%, 20% { opacity: 0; }
  24% { opacity: 0.3; }
  36%, 100% { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  :root { --t: calc(var(--cycle) * 2 / var(--speed)); }
  .you, .n-new, .s-new { animation-name: arrive-soft; }
  .n-old, .s-old { animation-name: leave-soft; }
  .ripple { animation-name: ring-soft; transform: scale(1.5); }
}

@media (max-width: 380px) {
  .card { padding: 14px; gap: 10px; }
  .head { gap: 8px; }
}
</style>
</head>
<body>
  <div class="card" role="status" aria-live="polite">
    <div class="head">
      <div>
        <div class="title">Saturday spore walk</div>
        <div class="meta">Capped at 50, on purpose</div>
      </div>
      <div class="count">
        <span class="num"><span class="n-old">47</span><span class="n-new">48</span></span>
        <span>members</span>
      </div>
    </div>
    <div class="pool" aria-hidden="true">
      <i class="r1"></i><i class="r2"></i><i class="r3"></i><i class="r4"></i>
      <i class="r5"></i><i class="r6"></i><i class="r7"></i><i class="r8"></i>
      <span class="slot"></span>
      <span class="ripple"></span>
      <span class="you"></span>
    </div>
    <div class="foot">
      <span class="status">
        <span class="s-old"><i></i>Joining…</span>
        <span class="s-new"><i></i><b>You're in</b>&nbsp;· member no. 48</span>
      </span>
    </div>
  </div>
</body>
</html>

The variant family

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