afterpress
AP / 00 — THE PRESSSTATE · IDLE
PRESS TO RUN THE FULL SEQUENCE
Demo checkout. No payment is taken.
01 Press02 Progress03 Confirm04 Settle

What happens after you press.

Feedback effects for the moment after a click. Squish, burst, confirm, recover. One attribute, your button, no dependencies.

See every effect
SAME EFFECT. YOUR BUTTON.

Burst and squish on three different buttons. The effect reads each one’s colours.

PRIMARY
DARK
SECONDARY

AP / 01 — JOURNEYS

Send it. Flip it. Let it go.

Coin fly

A coin leaves the button and lands in the cart.

Flip label

The label turns over to confirm the new state.

Dust

The button crumbles away. A demo: nothing is deleted.

AP / 02 — THE COLLECTION

Every press
deserves an after.

Press any tile to play it, as often as you like. Hit Tune ↗ to change the timing and copy the code.

PRESS TO PLAY · TUNE TO INSPECT

Loading 58 effects…

AP / 03 — FOR AGENTS

Say the feeling.
Ship the feedback.

“add a success burst to my pay button”

zm_call("feedback-kit", "get", { id: "burst" })
zm_call("feedback-kit","get",{id:"coin-fly"})

One attribute. Your colours. No dependencies.

What is Afterpress?

Afterpress (formerly Feedback Kit) is a free, MIT-licensed kit by ZirkoMirko that adds press, success, error and progress feedback to an existing button with one attribute, data-zm-fx. It has 58 effects in seven groups: press, particles, attention, success, progress, error and count, from ripple, squish and burst to hold-ring, swipe-to-confirm, cooldown and paper-plane. Effects take their colours from the button they sit on, and on Button Factory buttons they follow the button's loading, success and error states. Each effect is a standalone vanilla HTML, CSS and JavaScript snippet with no dependencies.

How it works

  1. Press the pink Pay button to see press, progress, confirm and settle, then browse all 58 effects on real buttons.
  2. Open an effect to change its options, trigger and host button, and watch the live preview.
  3. Copy the HTML, CSS and JS, or ask an agent with the ZirkoMirko hub to fetch it with zm_call("feedback-kit", "get", { id }).

FAQ

Do I have to replace my buttons?
No. Feedback Kit is a layer. Put data-zm-fx on your own button or link and it keeps its style; the effect reads its colours.
How big is a snippet?
Each standalone snippet inlines the shared runtime (about 12.7 KB gzip) plus the effect (under 1.6 KB gzip). Use one snippet per page; two pasted snippets load the runtime twice.
Does it respect reduced motion?
Yes. With reduced motion turned on, state changes still show but particle effects are skipped and motion is shortened. Sound is off by default.
Does it work with Button Factory states?
Yes. A trigger such as data-zm-fx-burst-on="success" follows a Button Factory button's data-state: morph-progress holds while loading, burst and tick play on success, and shake plays on error.

See Afterpress in action