∞ forever components

Feedback & States

Lamplight Slide Delete

Lamplight indigo-and-ochre register: typing cat-pics-2 arms an inertial slide-to-delete pill with an ochre trail.

cssmedium complexitymoderate 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

A reversible confirmation pattern with animated removal feedback.

When not to

Actual destructive actions without connecting validated server-side permission and recovery rules.

Working with an AI agent

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

Adapt content through existing data arrays; retain named palette, controls and demo-v1 lifecycle.

Safe to edit

  • Dark/light palette tokens
  • Sample data and visible labels
  • Animation timing and geometry

Keep intact

  • IIFE and namespaced CSS/IDs
  • Initial Manual mode; sticky first-input takeover
  • Theme URL/message hook; redraw canvas palette
  • Keyboard/focus/live status; reduced motion; hidden pause

Known limitations

  • Illustrative data; local state resets on remount.
  • Client-side delete/restore demo; no backend deletion.

deletetype-to-confirmslide-to-deletespringkeyboard

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).
  • Empty StateA 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.
  • 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.