---
title: "Snow Dissolve"
description: "A picture that frosts over and falls as soft snow. Use it to archive or put a thing away for later."
url: https://gelatinui.com/components/snow-dissolve
markdown_url: https://gelatinui.com/components/snow-dissolve.md
access: free
install: "npx shadcn@latest add @gelatin-ui/snow-dissolve"
registry_item: https://gelatinui.com/r/snow-dissolve.json
version: "2026-11-18"
index: https://gelatinui.com/llms.txt
docs_index: https://gelatinui.com/docs/llms.txt
---

# Snow Dissolve

> A picture that frosts over and falls as soft snow. Use it to archive or put a thing away for later.

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

## When to use it

Best for: Archiving something quietly: it frosts over, then falls as soft snow.

- Use it for actions that keep the item safe, such as Archive or Save for later.
- Set `wind` and `turbulence` higher for a storm, or both near 0 for a still night.
- Set `tint` to change the frost, for example a warm ash color.

## When not to use it

- For a drift to the side, use [Dust Dissolve](https://gelatinui.com/components/dust-dissolve.md).
- For a heavy fall that forms a pile, use [Sand Dissolve](https://gelatinui.com/components/sand-dissolve.md).

## Notes for agents

- The top goes first. Each grain turns to the `tint` color early, so the frost reads before the fall.
- `gravity` starts at 0.6, lower than the other falling effects, so the flakes stay slow.
- The flakes fall about 80% of the box height below it: leave room or let them cross what is under it.
- A strong `tint` works best on dark pictures, where the frost stands out.

## Anatomy

```text
SnowDissolve
```

## API reference

### SnowDissolve

| 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 snow takes to fall, in ms. Default `2600`. |
| `gravity` | `number` |  | How fast the flakes fall. Default `0.6`. |
| `wind` | `number` |  | How far the wind blows the flakes to the side. Default `0.3`. |
| `turbulence` | `number` |  | From 0 to 1: how much the flakes sway. Default `0.5`. |
| `tint` | `string` |  | The color of the frost, any CSS color. Default `oklch(0.97 0.01 240)`. |

## Styling

| Part | Slot | States | CSS variables | Tokens |
| --- | --- | --- | --- | --- |
| SnowDissolve | `snow-dissolve` |  |  |  |

## Usage

Frost an album cover when it moves to the archive.

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

```tsx title="album-cover.tsx"
"use client";

import { useState } from "react";

import { SnowDissolve } from "@/components/effects/snow-dissolve";
import { Button } from "@/components/ui/button";

export function AlbumCover() {
  const [archived, setArchived] = useState(false);
  return (
    <div className="flex w-80 max-w-full flex-col gap-2 pb-24">
      <SnowDissolve
        src="/photos/fjord-march.webp"
        alt="A fjord between steep mountains"
        dissolved={archived}
        wind={0.6}
      />
      <div className="flex items-center justify-between text-sm">
        <span>Fjord in March</span>
        <Button variant="link" size="sm" onClick={() => setArchived((value) => !value)}>
          {archived ? "Unarchive" : "Archive"}
        </Button>
      </div>
    </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/snow-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

- [Dust Dissolve](https://gelatinui.com/components/dust-dissolve.md)
- [Sand Dissolve](https://gelatinui.com/components/sand-dissolve.md)
- [Bubble Dissolve](https://gelatinui.com/components/bubble-dissolve.md)
- [Mask Reveal](https://gelatinui.com/components/mask-reveal.md)

## Motion

| Part | Motion |
| --- | --- |
| Out | heatPrint · 2.6s · grains frost from the top, then sway down and fade |
| Back | heatPrint · 2.6s · the flakes rise and thaw into the picture |
