forever components

UI Micro-interactions

Radio Dot Bloom

Radio list where selecting dips the ring, blooms a spring dot with overshoot, and fires an outward pulse. Auto-cycles through 5 options.

svgmedium complexitymoderate motionclick

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 →
Worth keeping? Votes steer what gets built next — sign in to cast one, free to read

When to use it

Settings panels, preference forms, or any single-select list where tactile selection feedback matters.

When not to

Long option lists (5+ items may feel crowded). Remove auto-cycle before shipping in production forms.

Working with an AI agent

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

Change accent color from '#2DD4BF' to '#A855F7', slow the bloom spring to 0.9s (change 0.62 in spring calc), and add a sixth label 'Resonance' to the labels array. Theme: dark tokens live in :root, the light variant in :root[data-theme="light"]; ?theme=light or a {type:'forever:theme'} postMessage switches at runtime.

Safe to edit

  • accent color (ACC='#2DD4BF')
  • dim ring color (DIM='#33585A')
  • option labels (labels array)
  • spring duration (0.62 divisor)
  • auto-cycle interval (1700ms)
  • dot bloom max radius (6.4)
  • theme tokens (:root dark defaults + [data-theme=light] overrides)

Keep intact

  • IIFE wrapper
  • prefers-reduced-motion guard with static fallback
  • visibilitychange stop/start
  • spring() overshoot function
  • theme hook (?theme= bootstrap + forever:theme message listener + theme tokens)

Known limitations

  • Auto-cycles by default — remove auto+=dt block before use in real forms
  • Background hardcoded to dark teal (#102A2E)
  • Rows lack role=radio and aria attributes

radioui-controlsvgspringmicrointeractionpulseloop

More UI Micro-interactions components

  • Add to Cart FlyProduct tile flings a mini clone in a bezier arc into a cart icon on click; badge count bumps with a spring bounce. Auto-cycles as demo.
  • 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 mockup with draggable list rows; pulling down reveals a teal arc spinner that fills and rotates, then triggers a skeleton-row flash on release.
  • 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.