Satin
A photo printed on satin that floats down onto the table and settles. Press and hold anywhere to pinch the fabric: it gathers toward your fingers and lifts, the cloth around it folding into ridges that catch the light. Drag to pull it about; let go and it drops back and settles flat, the last ripples running out to the edges.
How It Works
The sheet is a 56 by 40 grid of points moved by Verlet integration: each keeps its velocity, gravity pulls it to the table, and a soft spring draws it back to where it lies. Sticks between neighbours and diagonals are relaxed six times a frame so the cloth keeps its size, and looser sticks that skip a point resist sharp bends so folds stay rounded; when a pinch squeezes points together the sticks have to push some of them up, and that's the folds. Held points are pulled toward the pointer, their offsets shrinking and their height rising. The sheet starts in the air, its far corner highest, and falls with gravity that builds over the first second, so it floats down and lands corner first. Normals from neighbouring points light every fold, with a soft highlight for the sheen and a shadow drawn under the lifted cloth.
Use It
Install it with shadcn, or copy the file into your components folder, then use it like this. Change a setting in the demo and the example picks it up. Works with Next.js (App Router) and any React 19 project on Tailwind CSS v4.
npx shadcn@latest add @reacthive/satin<div className="aspect-[4/5] h-[80svh]">
<Satin src="/campaign.jpg" alt="The autumn campaign" />
</div>- It fills its parent, with a margin round the sheet for folds and shadow to rise into; the photo is cut to cover the sheet. Press and hold with a mouse or finger.
- gather is how much fabric a pinch takes, 0 to 1. sheen is how glossy it is, from matte cotton at 0 to satin at 1.
- The canvas is transparent round the sheet, so it lies on any background. With reduced motion the sheet is drawn flat and still.
- Plain WebGL2, no packages: about 2,200 points and 8,500 sticks solved on the CPU each frame, drawn as one textured mesh.
More to Look At

Reel Reveal
Images

Shoal
Text

Mercury Clock
Text
Your Next Site Starts with a Live Demo.
Click around first. What you see is exactly what you download.