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 motionpointer
Open on the canvas to copy the code → Free account · 3 copies a day · membership goes unlimited
Worth keeping?
Votes steer what gets built next — sign in to cast one, free to read
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)
Known limitations
- Light re-theme via the [data-theme=light] token block; catalog bg/accent describe the dark default
- Auto-demo scatter fires on an interval even without user interaction; disable autodemo() call for purely passive use
More Feedback & States components
- Success CheckMint-green ring sweeps closed and a checkmark draws in with a springy pop and expanding halo; auto-replays and responds to click or spacebar.
- 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,…
- Slide to ConfirmDraggable pill slider fills green on full slide; early release triggers a red shake. Spring physics snap thumb back. Auto-demos with an occasional failure…
- 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 BurstHeart dips then spring-pops into a magenta-mint gradient, firing a 96-particle synthwave burst of dots and ring shards. Auto-cycles when idle.