∞ forever components

Feedback & States

Empty State

A Bauhaus open vessel sits empty while 26 mint motes drift in a slow orbital cloud above it; poking scatters them and they spring back to settle.

canvasmedium complexitysubtle motionpointermobile-ready

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

Empty list pages, zero-data dashboards, or onboarding states that need a polished illustrated placeholder with subtle ambient life.

When not to

Contexts where motion competes with a call-to-action or form fields; background is hardcoded dark navy so it clashes with light UIs.

Working with an AI agent

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

Change the mote color from mint to amber by setting ACC to '#f59e0b', increase mote count N to 36, and slow the orbital wobble by changing t*0.0009 to t*0.0005. 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

  • mote count (N=26)
  • accent color (ACC='#34d399')
  • orbital drift speed (t*0.0009)
  • vessel scale (rw=64*u, rh=20*u)
  • scatter power in userPoke (3.2)
  • auto-demo interval (3200–4600ms)
  • theme tokens (:root dark defaults + [data-theme=light] overrides)

Keep intact

  • IIFE wrapper
  • prefers-reduced-motion static fallback + early return
  • visibilitychange pause/resume guard
  • DPR-aware canvas sizing
  • theme hook (?theme= bootstrap + forever:theme message listener + theme tokens)
  • demo-v1 preview lifecycle: initialize demoEnabled from window.__foreverPreview and stop attract work on the window forever:interactive event; retain manual feedback, settling, cleanup and explicit sessions

Known limitations

  • Light re-theme via the [data-theme=light] token block; catalog bg/accent describe the dark default
  • First deliberate input permanently disables idle demo; manual input, finite feedback and settling remain active. Host demoEnabled=false skips the initial attract cycle.
  • State remains local to each mounted instance; format/theme remount preserves takeover, not component values.

empty-statecanvasparticlesspring-physicsfeedbackambientui-illustration

More Feedback & States components

  • Success CheckMint-green ring sweeps closed and a checkmark draws in with a springy pop and expanding halo; initial replay stops after first input; click or Space runs…
  • Error ShakeDark email input shakes horizontally with decaying-sine, border flushes red, X icon pops in with overshoot spring, validation message slides up.
  • Toast StackDark notification toasts spring up from the bottom, drain a colored progress bar, then slide off right. Four types cycle: success, error, warning,…
  • Hold to ConfirmPress-and-hold fills a tick-marked ring; full hold rotates center square 45° into a green check; early release flashes red cross (cancelled).
  • Like BurstRose-and-verdigris enamel palette: a heart spring-pops with 96 dots and ring shards. First input stops the demo; later input toggles the liked state.
  • DeniedRed no-entry disk head-shakes with decaying sine spring and lateral buzz; impact sparks radiate on first beat. Initial demo stops after first input; click…