Holiday sale: 40% off Pro with code · limited offer · ends Dec 31
See ProOver half a million fine sand cells simulated on the GPU as a granular cellular automaton, laid out as wind-shaped desert dunes with soft windward slopes, sharp crests and steep lee faces. A gusting wind slowly carries grains over the crests so they avalanche down the lee side. The surface is lit from a low sun with crest highlights and shaded lee faces, with per-grain tone, strata, quartz glints and hazy distant dune ridges. Hovering shoves surface grains aside and pressing digs into the mass, so the walls collapse and pour back in. Reduced motion shows a settled still frame and browsers without WebGL get a CSS dune.
Included in Standard and aboveCompare plans
Live preview. Move the mouse, scroll and click inside the frame.
The copied code, markdown and prompt include the values you set here.
import { SandMassField } from "@/components/hyperblur-pro/sand-mass-field"
<div style={{ position: "relative", height: "100vh" }}>
<SandMassField grainSize={1.5} wind={1} />
</div>| Prop | Type | Default | Description |
|---|---|---|---|
| colors | string[] | ["#f6d49a", "#dd9f5a", "#a8622e"] | Sand tones from the lightest to the darkest grain. |
| background | string[] | ["#dfe9ee", "#f6d6ac"] | Sky gradient from top to horizon. |
| grainSize | number | 1.5 | Size of one grain in CSS pixels. Smaller means more grains. |
| brush | number | 46 | Radius of the pointer carving area in CSS pixels. |
| wind | number | 1 | Strength of the gusting wind that carries grains over dune crests. 0 keeps the sand still until touched. |
| friction | number | 0.5 | Grain friction from 0 to 1. Higher makes steeper, slower avalanches. |
| speed | number | 1 | Simulation speed multiplier. |
| interactive | boolean | true | Pointer carves and pushes the sand. |
| maxDpr | number | 1.5 | Upper limit for device pixel ratio. |
Source code is included in Standard and above