Give each column its own speed (0.7 to 1.8). Put controls in a solid card above the wall.
photo-wall.tsx
ParallaxWall
<div>| Prop | Type | Default | Description |
|---|---|---|---|
| range | "page""pin""view" | "page" | Where the scroll source counts from: view (default, the item's own pass through the view), page (the page scroll from its top, for a hero), or pin (the px a tall section with a sticky stage has pinned). See PARALLAX_RANGES. |
| container | RefObject<HTMLElement | null> | — | The scroll box, when the item scrolls inside one and not with the page. |
| pointer | boolean | — | Adds the pointer source: the layers drift toward the mouse over the item. Default false. |
| disabled | boolean | — | Rests every layer and stops the work. |
| fade | boolean | true | Fades the top and bottom edges into the page. Default true. |
| tilt | boolean | false | Lays the wall back in 3D, so the columns run on a slant into the page. Default false. |
| ...props | <div> attributes | — | Every other attribute goes to the <div>, with a ref. |
ParallaxWallColumn
<div>| Prop | Type | Default | Description |
|---|---|---|---|
| speed | number | 1 | How fast the column travels, as a multiplier of the designed pace (1, the default: half a pixel for each pixel of scroll), until its last card reaches the wall edge. Give the columns of one wall different speeds (0.7 to 1.8 reads well). |
| direction | "down""up" | "up" | up (default) starts at the top and rises; down starts at the bottom and sinks. |
| depth | number | 0 | How far the column drifts toward the mouse at the wall edge, in px, with pointer on. Default 0. |
| repeat | number | 0 | How many copies of the children follow them, so a short column has room to travel. The copies are hidden from screen readers and inert (no focus, no clicks). Default 0. Keep ids out of copied content: a copy repeats them. |
| ...props | <div> attributes | — | Every other attribute goes to the <div>, with a ref. |
Built with
Installs with Parallax Wall
- Components
- Parallax













