∞ forever components

UI Micro-interactions

Bead Badge

A count badge as a droplet: tap to roll a drop in and merge it into the bead, or use the minus button to split one off. Clean modern: off-black and carmine with a light theme. From the daily-team 'Control in process' set (2026-10-21 to 2026-10-25).

canvasmedium complexitymoderate motionpointer+keyboardaccessible

Open on the canvas to copy the code → Free account · 3 copies a day · membership goes unlimited

Live demo — the real component, running in a sandbox. One self-contained HTML file, zero dependencies. Open it on the canvas →
1

When to use it

Working with an AI agent

Every component ships agent-ready metadata. An example instruction for this one:

Palette: clean modern, off-black and carmine (docs/style-clean-modern.md). Edit the colour tokens on :root and the light block; keep the demo-v1 lifecycle intact.

Safe to edit

  • colour tokens on :root and the light block
  • idle demo steps and interval

Keep intact

  • demo-v1 preview lifecycle: initialize demo from window.__foreverPreview and stop the idle demo on the window forever:interactive event or the first pointer or key input; retain manual feedback, settling, cleanup and explicit sessions
  • IIFE scope, prefers-reduced-motion snap, visibilitychange pause, forever:theme listener and ?theme bootstrap

Known limitations

  • The metaball fill runs per pixel inside a bounding box, which costs more on large frames at DPR 2. The count is capped at 99.
  • State remains local to each mounted instance; format/theme remount preserves takeover, not component values.
  • Silent: the original daily-team build had sound where noted; it was removed so the tile stays quiet on the wall.

badgecounterdropletmetaballmerge

More UI Micro-interactions components

  • Add to Cart FlyNative Add button flings a product clone into a cart; first input cancels unfinished attract flights, while each manual action keeps its full 680ms flight…
  • Notification BellSVG bell swings and rings with a ripple wave on click; a red badge counter pops in with a springy bounce and increments each ring. Auto-cycles every 2…
  • Copy ConfirmCopy icon morphs to a drawn-stroke checkmark with a green button flash and a "Copied!" toast on click; auto-cycles as a demo loop.
  • Swipe Card StackTinder-style draggable card stack — drag the top card left/right to reveal NOPE/LIKE stamps; fling-away animates it off-screen and cycles to the next card.
  • Pull to RefreshA phone-frame list supports pointer/touch pull and a native Refresh button. First input stops attract refreshes; manual refresh completes its spinner, row…
  • Accordion ExpandThree FAQ panels smoothly expand and collapse with a CSS height transition; a chevron rotates 180 degrees to indicate open state. Auto-cycles as demo.