---
title: "Dust Dissolve"
description: "A picture that drifts away as fine dust on a curling wind. Use it to dismiss or archive something light."
url: https://gelatinui.com/components/dust-dissolve
markdown_url: https://gelatinui.com/components/dust-dissolve.md
access: free
install: "npx shadcn@latest add @gelatin-ui/dust-dissolve"
registry_item: https://gelatinui.com/r/dust-dissolve.json
version: "2026-11-18"
index: https://gelatinui.com/llms.txt
docs_index: https://gelatinui.com/docs/llms.txt
---

# Dust Dissolve

> A picture that drifts away as fine dust on a curling wind. Use it to dismiss or archive something light.

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

## When to use it

Best for: Dismissing a light card or photo that can come back later.

- Pair it with a Show again action: `dissolved={false}` gathers the dust from wherever it is.
- Raise `wind` when the picture should clear the area fast.
- Lower `turbulence` for a calm drift with less curl.

## When not to use it

- For a removal with weight and a pile, use [Sand Dissolve](https://gelatinui.com/components/sand-dissolve.md).
- For a slow fall straight down, use [Snow Dissolve](https://gelatinui.com/components/snow-dissolve.md).

## Notes for agents

- The dust leaves the start edge first, then blows toward the end side. In right-to-left text it blows the other way.
- It flies about 70% of the box width past each side and 35% of its height above: keep `overflow-hidden` off the parents.
- `origin` moves where the drift starts: `center` splits it to both sides.
- `progress` from 0 to 1 ties the drift to a swipe or a slider. Set it back to `undefined` and the effect finishes the way it points.

## Anatomy

```text
DustDissolve
```

## API reference

### DustDissolve

| 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 dust takes to blow away, in ms. Default `1800`. |
| `wind` | `number` |  | How far the wind carries the dust. Default `1`. |
| `turbulence` | `number` |  | From 0 to 1: how much the dust curls on its way. Default `0.5`. |

## Styling

| Part | Slot | States | CSS variables | Tokens |
| --- | --- | --- | --- | --- |
| DustDissolve | `dust-dissolve` |  |  |  |

## Usage

Blow a shared photo away, and keep a way to bring it back.

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/dust-dissolve @gelatin-ui/button
```

```tsx title="shared-photo.tsx"
"use client";

import { useState } from "react";

import { DustDissolve } from "@/components/effects/dust-dissolve";
import { Button } from "@/components/ui/button";

export function SharedPhoto() {
  const [dismissed, setDismissed] = useState(false);
  return (
    <article className="flex w-80 max-w-full flex-col gap-3">
      <DustDissolve
        src="/photos/valley-sunset.webp"
        alt="Hills at sunset over a quiet valley"
        dissolved={dismissed}
        wind={1.4}
      />
      <div className="flex items-center justify-between gap-4">
        <p className="text-sm text-muted-foreground">Shared with you · 2 min ago</p>
        <Button variant="outline" size="sm" onClick={() => setDismissed((value) => !value)}>
          {dismissed ? "Show again" : "Dismiss"}
        </Button>
      </div>
    </article>
  );
}
```

## 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/dust-dissolve
```

It adds 35 registry items: 34 files, 6525 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

- [Sand Dissolve](https://gelatinui.com/components/sand-dissolve.md)
- [Snow Dissolve](https://gelatinui.com/components/snow-dissolve.md)
- [Crumple to Delete](https://gelatinui.com/components/crumple-to-delete.md)
- [Mask Reveal](https://gelatinui.com/components/mask-reveal.md)

## Motion

| Part | Motion |
| --- | --- |
| Out | reactionFloat · 1.8s · grains leave from the start edge, curl, shrink, and fade |
| Back | reactionFloat · 1.8s · the same path in reverse, from where the dust is now |
