The live demo starts when it’s in view.Touch or drag to grow frost where you like · the light follows the pointer
Ice crystals that grow over a word, a logo or any shape.
What it costs a frame
GPU
1.71 ms
CPU
0.22 ms
02468101216.7 ms
GPU
1.71 ms
CPU, median
0.22 ms
CPU, 95th pct
0.31 ms
Draw calls
0
Weight
Moderate
Measured 11 November 2026 on 13th Gen Intel(R) Core(TM) i9-13900H, Chrome 157, 1920×1080 at 1×. 600 frames × 3 rounds, median kept. What ran: Measured looping by itself: the word grows over its grow time (about seven phase-field steps a frame on the 640-column grid, more while it melts back), holds, melts and grows again; one draw pass over the word each frame. Timed with its own timestamp queries. Phones: tiers are being measured next.
apple · Apple A19 Proin a browser tab · 16 November 2026
7.28
0.30
0.50
Intel Arc 140V (Xe2-LPG) · Intel Core Ultra 7 258Vin a browser tab · 15 November 2026
0.33
0.36
0.64
Bars against one 16.7 ms frame. A browser-tab run is timed in a visible tab without the tool’s scripted input, so read it as close, not exact.
What it needs
Renders with
WebGPUNeeds WebGPU: current Chrome and Edge, Safari 26+, Firefox 141+ on Windows.
Your browser
Checking…Looking for WebGPU
Depends on
NothingNo other packages
What it’s for
Title cards and splash screens
Winter and seasonal themes
Logo reveals
Game menus and loading screens
Frozen states in UI (a locked or paused card)
Pitfalls, in brief
The steps are explicit: the source’s DT, DX and constants sit near the edge of stability.
Crystals keep their size in cells, so a finer grid grows finer frost and needs proportionally more steps (the module scales them): the cost grows with the cube of the columns.
Never queue more than one frame ahead: draw() skips while its last submit is still on the GPU, and the steps it would have run wait for the next draw.
Going back in growth starts again from nothing and catches up (at most cap steps a draw): scrubbing backwards costs a burst of steps.
The mask must have room round the shape (pad in drawWordMask): the frost feathers a little past the edges and the grid stops at the mask’s border.
2 more in brief
Load the font before drawing the word mask, or the frost grows over the fallback font.
The target is premultiplied alpha: configure the canvas with alphaMode "premultiplied" to see what is under it.
7 pitfalls in full, the hook-up guide, the module source and its tests come with the part.
Where it comes from
From SpaciousPro. Fully custom code.
Ryo Kobayashi, Modeling and numerical simulations of dendritic crystal growth (Physica D 63, 1993): The phase-field model and its anisotropy terms; the source’s constants are close to the paper’s.
Mark Jarzynski & Marc Olano, Hash Functions for GPU Rendering (2020): Their PCG hash, for the noise at the tips, the specks of dust and the glints.