---
title: "Orbit Dissolve"
description: "Spin a picture into rings around its center. Inner rings run faster, and every ring widens as it fades."
url: https://gelatinui.com/components/orbit-dissolve
markdown_url: https://gelatinui.com/components/orbit-dissolve.md
access: pro
install: "npx shadcn@latest add @gelatin-ui-pro/orbit-dissolve"
version: "2026-11-18"
index: https://gelatinui.com/llms.txt
docs_index: https://gelatinui.com/docs/llms.txt
---

# Orbit Dissolve

> Spin a picture into rings around its center. Inner rings run faster, and every ring widens as it fades.

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

## When to use it

Best for: Square or round covers that should leave in a calm, circular motion.

- Use it on album art, covers, and other centered pictures.
- Raise `turns` for more laps during the fade.
- Give it a longer `duration` for a slow, ambient exit.

## When not to use it

- To drain into the center, use [Vortex Dissolve](https://gelatinui.com/components/vortex-dissolve.md).
- For a rising funnel, use [Tornado Dissolve](https://gelatinui.com/components/tornado-dissolve.md).

## Notes for agents

- Rings grow to about one and a half times their first size. Leave free space around the box.
- The middle leaves first. `origin` moves the center of the rings.
- It looks best in a square box: set `className="aspect-square"`.
- `turns` sets the laps of the inner rings. Outer rings make fewer.

## Anatomy

```text
OrbitDissolve
```

## API reference

### OrbitDissolve

| 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 rings take to fade, in ms. Default `2600`. |
| `turns` | `number` |  | How many times the grains circle the middle. Default `1.5`. |

## Styling

| Part | Slot | States | CSS variables | Tokens |
| --- | --- | --- | --- | --- |
| OrbitDissolve | `orbit-dissolve` |  |  |  |

## Usage

Dismiss the cover in a square box.

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

```tsx title="now-playing.tsx"
"use client";

import { useState } from "react";

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

export function NowPlaying() {
  const [dismissed, setDismissed] = useState(false);
  return (
    <div className="flex w-56 max-w-full flex-col items-center gap-4 py-16">
      <OrbitDissolve
        src="/photos/jazz-room.webp"
        alt="A small jazz room with a stage"
        dissolved={dismissed}
        turns={2}
        className="aspect-square w-full"
      />
      <p className="text-sm font-medium">Jazz Room, live set</p>
      <Button
        size="sm"
        variant="outline"
        onClick={() => {
          setDismissed((value) => {
            return !value;
          });
        }}
      >
        {dismissed ? "Bring back" : "Dismiss"}
      </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-pro/orbit-dissolve
```

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

- [Tornado Dissolve](https://gelatinui.com/components/tornado-dissolve.md)
- [Vortex Dissolve](https://gelatinui.com/components/vortex-dissolve.md)
- [Orbit Logo Rotate](https://gelatinui.com/components/orbit-logo-rotate.md)
- [Starfield](https://gelatinui.com/components/starfield.md)

## Motion

| Part | Motion |
| --- | --- |
| Circle | heatPrint · 2.6s · rings turn at different speeds, widen, and fade |
| Back | heatPrint · 2.6s · the rings close and the picture forms |
