Skip to content

Snow Dissolve

Free

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

  • React 19
  • Tailwind CSS 4

Added Nov 18, 2026 · MIT + Commons Clause

Playground

Loading the preview

Props

Frost an album cover when it moves to the archive.

The sample also uses Button. One command adds them with this item:

album-cover.tsx

SnowDissolve

<div>
PropTypeDefaultDescription
srcstring—The picture URL. Give src or source.
source—A picture the page already has: an <img>, a <canvas>, an ImageBitmap, or an OffscreenCanvas.
altRequiredstring—Names the picture for screen readers while it shows.
crossOrigin"""anonymous""use-credentials"—The CORS mode of a picture on another origin: the grains read its pixels.
fit"contain""cover"—How the picture fills the box, as object-fit. Default cover.
grainSizenumber—The side of one grain in CSS px. A very large box raises it, so the effect stays smooth.
dissolvedboolean—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.
progressnumber—From 0 (whole) to 1 (gone): a gesture drives the effect and no clock runs. Leave it out to play.
seednumber—The same seed gives the same motion. Default: from the picture URL.
onDissolveEnd—Called when the last grain has left (or the fade has ended).
onRestoreEnd—Called when the picture is whole again after a played return.
originGrainOrigin—Where the effect starts. press is the last press in the picture.
spreadnumber—From 0 to 0.85: how much of the effect passes between the first grain that leaves and the last.
jitternumber—From 0 to 0.85: how much of each grain's start is random.
durationnumber—How long the snow takes to fall, in ms. Default 2600.
gravitynumber—How fast the flakes fall. Default 0.6.
windnumber—How far the wind blows the flakes to the side. Default 0.3.
turbulencenumber—From 0 to 1: how much the flakes sway. Default 0.5.
tintstring—The color of the frost, any CSS color. Default oklch(0.97 0.01 240).
...props<div> attributes—Every other attribute goes to the <div>, with a ref.
  • 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.
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
  1. AddedSnow Dissolve.
Open the release