Hold-to-delete ember burn card

I wanted to rebuild Keshav Bagaade's Hold to Delete with HTML-in-canvas, so that the burning page is live DOM rather than a baked bitmap. Edit the key title or notes, then press and hold Hold to delete: an FBM ember front spreads from the button's exact CSS bounding box, cools back intact if you let go early, or burns through to a live Undo delete card at 100%.

Card deleted

Checkout Webhook Key

Deleted after 1.40 s hold · Paper ash

sk_live_49f8 Active Hold 1.4s to delete

Starting canvas…

Show the code two drawable cards, button-rect SDF, FBM burn shader, quench state and hit-box sync
  1. Two live drawable cards in one canvas. #burn-card holds editable controls and #btn-delete; #deleted-card sits behind it as inert HTML until charge hits 100%.
  2. Measure #btn-delete inside #burn-card. Walks offsetLeft and offsetTop up to #burn-card so uOriginRect matches the rendered button border box and corner distance.
  3. FBM and cellular ember burn shader. Computes rounded-box distance from uOriginRect, warps with 4-octave FBM and thermal updraft, chars ahead of the flame rim and raises sparks over the transparent void.
  4. Hold, quench and reduced-motion state machine. Charges over 1.4 s on pointer or keyboard hold, cools back to zero on early release, and switches to a calm radial wipe without turbulence under reduced motion.
  5. Hit-box sync with geometryUnit(). Flips inert, moves the inactive card offstage with updateElementGeometry() and toggles dataset.hitTick so #btn-undo takes clicks at 100%.
  6. Five-argument 2D and plain-HTML fallbacks. Clips an expanding radial burn ring over #burn-card with five-argument drawElementImage(), or moves both cards into plain HTML if the context is lost.

How it works

This builds on Hold to Delete by Keshav Bagaade. Instead of painting a static snapshot, both the editable card and the recovery card stay live DOM inside one <canvas content="drawable" layoutsubtree> rendered through ElementGL.

Live checks

Each check builds its own isolated fixture on testStage() and retires its canvas when finished. The visible demo above isn't touched.

ResultExperimentDetail

Findings

Not verified yet in headless Chromium 157 or Chrome 159 on Android. Tap "Run these 5 checks" above to measure this browser.