---
title: "Burst Dissolve"
description: "A picture that bursts outward from the point you press, in a ring. Use it to remove a thing the user taps."
url: https://gelatinui.com/components/burst-dissolve
markdown_url: https://gelatinui.com/components/burst-dissolve.md
access: free
install: "npx shadcn@latest add @gelatin-ui/burst-dissolve"
registry_item: https://gelatinui.com/r/burst-dissolve.json
version: "2026-11-18"
index: https://gelatinui.com/llms.txt
docs_index: https://gelatinui.com/docs/llms.txt
---

# Burst Dissolve

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

Page: https://gelatinui.com/components/burst-dissolve

## When to use it

Best for: A quick, hard removal that starts exactly where the person tapped.

- 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.

## When not to use it

- For a calm ring that bobs like water, use [Ripple Dissolve](https://gelatinui.com/components/ripple-dissolve.md).
- For a picture that pulls inward to one point, use [Vortex Dissolve](https://gelatinui.com/components/vortex-dissolve.md).

## Notes for agents

- The root records the last press inside the picture on pointer down, before your click handler runs.
- With no press yet, the ring starts in the middle of the box.
- At 1.2 s it is quick, so it suits direct feedback.
- The pieces fly about half a box past every side and 60% below: leave room, or let them cross nearby content.
- Add `cursor-pointer` when the picture itself is the control.

## Anatomy

```text
BurstDissolve
```

## API reference

### BurstDissolve

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `src` | `string` |  | The picture URL. Give `src` or `source`. |
| `source` | `union` |  | A picture the page already has: an `<img>`, a `<canvas>`, an `ImageBitmap`, or an `OffscreenCanvas`. |
| `alt` | `string` |  | Names the picture for screen readers while it shows. |
| `crossOrigin` | `GrainCrossOrigin` |  | The CORS mode of a picture on another origin: the grains read its pixels. |
| `fit` | `GrainFit` |  | How the picture fills the box, as `object-fit`. Default `cover`. |
| `grainSize` | `number` |  | The side of one grain in CSS px. A very large box raises it, so the effect stays smooth. |
| `dissolved` | `boolean` |  | 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`. |
| `progress` | `number` |  | From 0 (whole) to 1 (gone): a gesture drives the effect and no clock runs. Leave it out to play. |
| `seed` | `number` |  | The same seed gives the same motion. Default: from the picture URL. |
| `onDissolveEnd` | `function` |  | Called when the last grain has left (or the fade has ended). |
| `onRestoreEnd` | `function` |  | Called when the picture is whole again after a played return. |
| `origin` | `GrainOrigin` |  | Where the effect starts. `press` is the last press in the picture. |
| `spread` | `number` |  | From 0 to 0.85: how much of the effect passes between the first grain that leaves and the last. |
| `jitter` | `number` |  | From 0 to 0.85: how much of each grain's start is random. |
| `duration` | `number` |  | How long the burst lasts, in ms. Default `1200`. |
| `force` | `number` |  | How far the ring throws the grains. Default `1`. |
| `gravity` | `number` |  | How fast the thrown grains drop. Default `1`. |

## Styling

| Part | Slot | States | CSS variables | Tokens |
| --- | --- | --- | --- | --- |
| BurstDissolve | `burst-dissolve` |  |  |  |

## Usage

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

The sample also uses `button`, which this add does not write. One command adds them with this item:

```bash
npx shadcn@latest add @gelatin-ui/burst-dissolve @gelatin-ui/button
```

```tsx title="reward-tile.tsx"
"use client";

import { useState } from "react";

import { BurstDissolve } from "@/components/effects/burst-dissolve";
import { Button } from "@/components/ui/button";

export function RewardTile() {
  const [opened, setOpened] = useState(false);
  return (
    <div className="flex w-72 max-w-full flex-col items-start gap-3">
      <BurstDissolve
        src="/photos/dew-drops.webp"
        alt="Dew drops on a green leaf, close up"
        origin="press"
        dissolved={opened}
        force={1.4}
        className="w-full cursor-pointer"
        onClick={() => setOpened(true)}
      />
      <Button variant="outline" size="sm" onClick={() => setOpened((value) => !value)}>
        {opened ? "Put it back" : "Open reward"}
      </Button>
    </div>
  );
}
```

## Compose

Rules:

- Compose the parts (`compose-parts`): Build each item from its named parts as children, and pass your text and icons in as parts.
- Every state is designed (`every-state`): Give each view of data its loading, empty, and error states: a skeleton in the final layout, an `Empty` with an illustration and one next action, and an error that says what failed and how to retry.

## Add it

```bash
npx shadcn@latest add @gelatin-ui/burst-dissolve
```

It adds 35 registry items: 34 files, 6538 lines, and the npm packages `@mantine/hooks`, `@xstate/react`, `clsx`, `motion`, `tailwind-merge`, `xstate`.

## For AI agents

- Every item, one file: https://gelatinui.com/llms.txt
- MCP server (`search_items`, `get_item`, `get_install_plan`): https://gelatinui.com/mcp

## Related

- [Ripple Dissolve](https://gelatinui.com/components/ripple-dissolve.md)
- [Vortex Dissolve](https://gelatinui.com/components/vortex-dissolve.md)
- [Scratch Card](https://gelatinui.com/components/scratch-card.md)
- [Crumple to Delete](https://gelatinui.com/components/crumple-to-delete.md)

## Motion

| Part | Motion |
| --- | --- |
| 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 |
