---
title: "Bounce Dissolve"
description: "A picture that drops to the floor and bounces apart. Use it to drop an item from a list."
url: https://gelatinui.com/components/bounce-dissolve
markdown_url: https://gelatinui.com/components/bounce-dissolve.md
access: pro
install: "npx shadcn@latest add @gelatin-ui-pro/bounce-dissolve"
version: "2026-11-18"
index: https://gelatinui.com/llms.txt
docs_index: https://gelatinui.com/docs/llms.txt
---

# Bounce Dissolve

> A picture that drops to the floor and bounces apart. Use it to drop an item from a list.

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

## When to use it

Best for: A playful drop for lists and games, with pieces that hit the floor of the box.

- Use it when the box has a clear floor, such as a card or a list row.
- Set `bounces` to choose how lively the landing is.
- Raise `gravity` for a heavy object that stays low.

## When not to use it

- For a fall that forms a pile, use [Sand Dissolve](https://gelatinui.com/components/sand-dissolve.md).
- For a node that keeps bouncing around its box, use [Bounce](https://gelatinui.com/components/bounce.md).

## Notes for agents

- The floor is the bottom of the box, so the pieces never fall onto content below it.
- Each bounce is lower than the last. More `gravity` makes them lower.
- `bounces` of 0 is a single soft landing.
- Pieces are 4 px by default, and they drift only a little to the sides.

## Anatomy

```text
BounceDissolve
```

## API reference

### BounceDissolve

| 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 grains bounce, in ms. Default `2600`. |
| `gravity` | `number` |  | How much height each bounce loses. More is a heavier, lower bounce. Default `1`. |
| `bounces` | `number` |  | How many times a grain bounces on the floor. Default `3`. |

## Styling

| Part | Slot | States | CSS variables | Tokens |
| --- | --- | --- | --- | --- |
| BounceDissolve | `bounce-dissolve` |  |  |  |

## Usage

Drop a packed item out of the list.

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

```tsx title="packing-item.tsx"
"use client";

import { useState } from "react";

import { BounceDissolve } from "@/components/pro/effects/bounce-dissolve";
import { Button } from "@/components/ui/button";

export function PackingItem() {
  const [dropped, setDropped] = useState(false);
  return (
    <article className="flex w-72 max-w-full flex-col gap-3 rounded-2xl border p-3">
      <BounceDissolve
        src="/photos/trail-backpack.webp"
        alt="A trail backpack with side pockets"
        dissolved={dropped}
        bounces={4}
        className="w-full"
      />
      <Button variant="outline" size="sm" onClick={() => setDropped((value) => !value)}>
        {dropped ? "Pick up" : "Drop"}
      </Button>
    </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-pro/bounce-dissolve
```

It adds 35 registry items: 34 files, 6528 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)
- [Shuffle Dissolve](https://gelatinui.com/components/shuffle-dissolve.md)
- [Bounce](https://gelatinui.com/components/bounce.md)
- [Crumple to Delete](https://gelatinui.com/components/crumple-to-delete.md)

## Motion

| Part | Motion |
| --- | --- |
| Out | heatPrint · 2.6s · pieces drop from the top down, bounce lower each time, then fade |
| Back | heatPrint · 2.6s · the bounces play in reverse up to each place |
