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:
contour-range-hero.tsx
ContourRangeBackground
<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: 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 | — | How many landforms fit the box height. More gives smaller hills. From 0.5 to 8. Default 1.75. |
| ridges | number | — | How tall and sharp the mountain ridges are against the plains. From 0 to 1.5. Default 1. |
| bend | number | — | How much the land twists, from straight folds to winding valleys. From 0 to 2.5. Default 0.8. |
| detail | number | — | The small wobble in every line. From 0 to 1. Default 0.5. |
| morph | number | — | How fast the land reshapes over time. 0 keeps it still. From 0 to 2. Default 0.2. |
| contours | number | — | How many contour lines stack up the tallest mountain. From 6 to 70. Default 22. |
| line | number | — | The width of a plain contour, in CSS px, near and far. From 0.4 to 4. Default 1. |
| index | number | — | The width of a heavy index contour, in CSS px. From 0.5 to 6. Default 1.7. |
| index | number | — | Which contours draw heavy: every fifth at 5. A whole number from 2 to 10. Default 5. |
| elevation | number | — | How tall the mountains rise. 0 lays the map flat. From 0 to 1.5. Default 0.46. |
| foreground | number | — | How much height the land keeps as it reaches the view. Low values keep the front clear. From 0 to 1. Default 0.2. |
| tilt | number | — | The view angle in degrees, from low across the land to 90 for straight down. From 10 to 90. Default 32. |
| altitude | number | — | How high the view flies over the land. From 0.4 to 2. Default 0.98. |
| glide | number | — | How fast the view flies over the land. From 0 to 1. Default 0.1. |
| glow | number | — | The soft light around each line. From 0 to 2. Default 0.6. |
| focus | number | — | How much lines soften away from the focus, which follows the hand. From 0 to 1. Default 0.4. |
| fog | number | — | How fast the far land fades into the sky. From 0 to 1. Default 0.42. |
| brightness | number | — | The overall strength of the lines. From 0.1 to 2.5. Default 1. |
| sun | number | — | Where the low sun stands around the land, in degrees. From 0 to 360. Default 142. |
| sun | number | — | How much brighter the slopes that face the sun burn. From 0 to 1.5. Default 0.55. |
| lift | number | — | How high the land rises under the hand, and how bright it lights. From 0 to 1. Default 0.15. |
| reach | number | — | How wide the hand reaches, in land units. From 0.1 to 1.5. Default 0.42. |
| trail | number | — | How long the land takes to settle after the hand leaves. From 0 to 1. Default 0.3. |
| parallax | number | — | How far the view leans toward the hand. From 0 to 1. Default 0.5. |
| peak | number | — | How tall the peak from a press grows. From 0 to 1. Default 0.42. |
| glitch | number | — | How often short slices of the picture jump sideways. A press sets one off too. From 0 to 1. Default 0. |
| travel | "backward""forward""left""right" | — | Which way the view flies over the land. Default forward. |
| hover | "lift""light""trace" | — | What the hand does: lift raises the land, trace lights the contour at its height, light only lights the land. Default lift. |
| click | "none""peak""pulse" | — | What a press does: pulse rolls a ring of light over the land, peak raises a new mountain, none does nothing. Default pulse. |
| markers | "dots""none""plus" | — | Survey marks on a grid over the land. A few blink, and those near the hand get a target frame. Default none. |
| major | boolean | — | Draws every index contour heavier and brighter. Default true. |
| animate | boolean | — | The map starts flat and rises into mountains when it first runs. Default true. |
| mask | number | — | 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. |





