Polaroid Wall
A framed wall of instant photos, each taped or pinned at the top. Sunlight falls across the wall with the shadow of a window and swaying leaves, dust drifts in the beam, and every few seconds a gust of wind lifts and curls the photos like thin paper. Click one to unpin it and see it large.
Polaroid Wall is a Pro component
Subscribe to unlock the live preview, canvas editing and the full source.
Features
- •Wind that moves paper — Every few seconds a gust sweeps across the wall: the photos lift off it one after another, their bottom halves curl further than the top and flutter, then settle back. Hover a photo to give it its own flutter.
- •Sunlight through a window — A warm sunbeam slides in across the wall with the shadow of the window bars and of leaves swaying outside. Photos in the beam glow warm; the rest sit in shade. Set its angle, strength and colour.
- •Dust in the light — Fine dust drifts slowly through the sunbeam and gets blown along when the wind picks up.
- •Click to view — Click (or press Enter on) a photo and it unpins and flies to the middle, large, over a dimmed wall. Click again or press Escape and it goes back to its place.
- •Any grid — From a single photo up to 10 × 8. Each one hangs at its own slight tilt, a little off its spot, held by tape, a pin or nothing. A warm film look, or the photos as they are.
- •One file, no dependencies — Plain React and CSS 3D transforms, sized to fit its parent. Pauses offscreen, and stays still with reduced motion. Without photos, film-tone cards stand in.
Props API Reference
11 configurable props| Prop | Type | Default | Description |
|---|---|---|---|
| photos | string[] | [] | Photo URLs, used in turn to fill the wall; without any, film-tone cards stand in. |
| columns / rows | number | 3 / 2 | Photos across (1–10) and down (1–8). |
| spacing | number | 0.85 | Room around each photo, 0 (tight) to 1 (lots of mat). |
| wind / windGap | number | 0.6 / 3 | How hard the gusts blow (0 keeps the photos still, up to 1.5), and seconds of calm between them. |
| sunlight / dust | boolean | true / true | The sunbeam with its window and leaf shadows, and dust drifting in it. |
| lightAngle / lightStrength / lightColor | number / number / string | -28 / 0.85 / "#FFC37A" | Angle of the beam in degrees (−60 to 60), its brightness (0–1) and colour. |
| pinStyle / pinColor | "tape" | "pin" | "none" / string | "tape" / "#C8402F" | What holds each photo at the top, and the pin colour. |
| film | boolean | true | A warm film look on the photos. |
| expandable | boolean | true | Click a photo to see it large. |
| wallColor / frameColor / matColor / cardColor | string | "#CDA977" / "#17130F" / "#F1E9DA" / "#FBF8F2" | The wall, the frame, the mat behind the photos, and each photo's white border. |
| className / style | string / CSSProperties | undefined | On the wall; it fills its parent. |