Put the hero content inside as children: they sit on top of the moving picture. Give the root a height.
The sample also uses Button. One command adds them with this item:
paper-relief-hero.tsx
PaperReliefBackground
<div>| Prop | Type | Default | Description |
|---|---|---|---|
| palette | readonly string[] | PALETTE | Any CSS colors (var(--token) too): the ground, the second ground, then the look colors. |
| speed | number | — | The time scale: 1 (default) is the designed speed, 0 a still frame. |
| paused | boolean | — | True holds the current frame. Default false. |
| trigger | "hover""loop" | — | When it moves: loop (default) or hover. It draws its first frame either way. |
| seed | number | — | Another seed gives another field of the same look. Default 0. |
| press | boolean | — | True: a press on the box sends a ripple through the field where it lands; a press on a button or a link inside does not. Default false. |
| pointer | boolean | true | True: the field leans toward a mouse or pen over the box. Default false. |
| fps | number | — | The most frames a second. Default: the display rate. |
| resolution | number | — | A last scale on the canvas pixels, after the caps (0.5 draws a quarter of them). Default 1. |
| mask | "bottom""edges""none""radial""top" | — | Fades an edge into the page: radial, edges, top, or bottom. Default none. |
| vignette | number | — | Darkens toward the corners, 0 to 1. Default 0. |
| fallback | boolean | — | True: a CSS gradient of the palette shows on the server, until the first WebGL frame, and with no WebGL. Default false: the box stays empty and the live picture fades in, because the gradient looks unlike the real effect and the swap reads as a glitch. |
| land | number | 2.8 | How many landforms fit the box height. More gives smaller hills. From 0.5 to 8. Default 2.8. |
| ridges | number | 0.8 | How tall and sharp the mountain ridges are against the plains. From 0 to 1.5. Default 0.8. |
| bend | number | 1.1 | How much the land twists, from straight folds to winding valleys. From 0 to 2.5. Default 1.1. |
| detail | number | 0.5 | The small wobble in every line. From 0 to 1. Default 0.5. |
| morph | number | 0.12 | How fast the land reshapes over time. 0 keeps it still. From 0 to 2. Default 0.12. |
| sheets | number | 10 | How many sheets of card the land is cut from. A whole number from 3 to 24. Default 10. |
| shadow | number | 21 | How far each sheet casts its shadow, in CSS px. From 0 to 60. Default 21. |
| shadow | number | 0.42 | How dark the shadows are. From 0 to 1. Default 0.42. |
| edge | number | 0.6 | How bright the cut edge of each sheet catches the light. From 0 to 1. Default 0.6. |
| paper | number | 0.035 | How much paper fiber shows on the sheets. From 0 to 0.15. Default 0.035. |
| light | number | 225 | Where the light comes from, in degrees clockwise from the right. From 0 to 360. Default 225. |
| follow | number | 0.85 | How much the hand takes over as the lamp. Needs the pointer on. From 0 to 1. Default 0.85. |
| mask | number | 0.25 | The share of the box the mask fade takes, from 0.05 to 0.6. Default 0.25. |
| ...props | <div> attributes | — | Every other attribute goes to the <div>, with a ref. |





