---
title: "Topple Dissolve"
description: "Knock a picture over like dominoes. Thin columns tip on their base, one after another, then drop off the floor."
url: https://gelatinui.com/components/topple-dissolve
markdown_url: https://gelatinui.com/components/topple-dissolve.md
access: pro
install: "npx shadcn@latest add @gelatin-ui-pro/topple-dissolve"
version: "2026-11-18"
index: https://gelatinui.com/llms.txt
docs_index: https://gelatinui.com/docs/llms.txt
---

# Topple Dissolve

> Knock a picture over like dominoes. Thin columns tip on their base, one after another, then drop off the floor.

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

## When to use it

Best for: A cancel or clear action, where one push should seem to knock the whole picture down.

- Use it when the cause and the order of the removal should be easy to follow.
- Pass `origin="end"` to push from the other side.
- Raise `gravity` for a faster drop after the tip.

## When not to use it

- For strips that fall straight down, use [Shred Dissolve](https://gelatinui.com/components/shred-dissolve.md).
- For pieces that bounce on the floor, use [Bounce Dissolve](https://gelatinui.com/components/bounce-dissolve.md).

## Notes for agents

- The first column is at the reading start, and right-to-left pages run the other way.
- Columns reach past the box in the direction of the fall. Leave free width on that side.
- Each column turns around its own base at the bottom of the box.
- `grainSize` sets the width of a column, 3 px by default.

## Anatomy

```text
ToppleDissolve
```

## API reference

### ToppleDissolve

| 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 columns take to fall, in ms. Default `1800`. |
| `gravity` | `number` |  | How fast the tipped columns drop. Default `1`. |

## Styling

| Part | Slot | States | CSS variables | Tokens |
| --- | --- | --- | --- | --- |
| ToppleDissolve | `topple-dissolve` |  |  |  |

## Usage

Knock the booking over when the guest cancels it.

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

```tsx title="booking-card.tsx"
"use client";

import { useState } from "react";

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

export function BookingCard() {
  const [cancelled, setCancelled] = useState(false);
  return (
    <article className="flex w-80 max-w-full flex-col gap-3 pb-24">
      <ToppleDissolve
        src="/photos/hotel-room.webp"
        alt="A bright hotel room with a wide bed"
        dissolved={cancelled}
        className="w-full"
      />
      <div className="flex items-center justify-between gap-4 text-sm">
        Hotel room, booking 7
        <Button
          size="sm"
          variant={cancelled ? "outline" : "destructive"}
          onClick={() => {
            setCancelled((value) => {
              return !value;
            });
          }}
        >
          {cancelled ? "Rebook" : "Cancel"}
        </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-pro/topple-dissolve
```

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

- [Shred Dissolve](https://gelatinui.com/components/shred-dissolve.md)
- [Bounce Dissolve](https://gelatinui.com/components/bounce-dissolve.md)
- [Crumple to Delete](https://gelatinui.com/components/crumple-to-delete.md)
- [Zoom Reveal](https://gelatinui.com/components/zoom-reveal.md)

## Motion

| Part | Motion |
| --- | --- |
| Tip and drop | reactionFloat · 1.8s · columns turn 90 degrees in order, then drop and fade |
| Back | reactionFloat · 1.8s · columns stand up again in reverse order |
