Skip to content

Burst Dissolve

Free

A picture that bursts outward from the point you press, in a ring. Use it to remove a thing the user taps.

  • React 19
  • Tailwind CSS 4

Added Nov 18, 2026 · MIT + Commons Clause

Playground

Loading the preview

Props

Start the ring at the press. The button gives keyboard users the same action.

The sample also uses Button. One command adds them with this item:

reward-tile.tsx

BurstDissolve

<div>
PropTypeDefaultDescription
srcstring—The picture URL. Give src or source.
source—A picture the page already has: an <img>, a <canvas>, an ImageBitmap, or an OffscreenCanvas.
altRequiredstring—Names the picture for screen readers while it shows.
crossOrigin"""anonymous""use-credentials"—The CORS mode of a picture on another origin: the grains read its pixels.
fit"contain""cover"—How the picture fills the box, as object-fit. Default cover.
grainSizenumber—The side of one grain in CSS px. A very large box raises it, so the effect stays smooth.
dissolvedboolean—The picture is gone (controlled). true takes it apart; false brings it back.
restore"instant""play"—How the picture comes back: play runs the effect backward, instant shows it at once. Default play.
progressnumber—From 0 (whole) to 1 (gone): a gesture drives the effect and no clock runs. Leave it out to play.
seednumber—The same seed gives the same motion. Default: from the picture URL.
onDissolveEnd—Called when the last grain has left (or the fade has ended).
onRestoreEnd—Called when the picture is whole again after a played return.
originGrainOrigin—Where the effect starts. press is the last press in the picture.
spreadnumber—From 0 to 0.85: how much of the effect passes between the first grain that leaves and the last.
jitternumber—From 0 to 0.85: how much of each grain's start is random.
durationnumber—How long the burst lasts, in ms. Default 1200.
forcenumber—How far the ring throws the grains. Default 1.
gravitynumber—How fast the thrown grains drop. Default 1.
...props<div> attributes—Every other attribute goes to the <div>, with a ref.
  • Set origin="press" and turn dissolved on in the same press, so the ring starts under the finger.
  • Add a real button next to the picture: a keyboard press has no point, so the ring starts in the middle.
  • Use force for reach and gravity for how fast the pieces drop.
Out
draw · 1.2s · a ring runs out from the press and throws the grains, which then drop and fade
Back
draw · 1.2s · the grains fly back in, the far ones first
  1. AddedBurst Dissolve.
Open the release