Skip to content

Contour Range Background

Pro

A 3D mountain range of contour lines that burn where the low sun hits.

  • React 19
  • Tailwind CSS 4

Added Nov 24, 2026 · Pro license

Playground

Loading the preview

Props

Needs your Pro API key in GELATIN_UI_PRO_TOKEN. Set it up

Pro itemAPI key required

Contour Range Background needs a Pro API key

Try the live preview for free. With Pro, the add command above puts the source in your project.

Files it adds
50
More Pro items, one API key
+327
Your coding agent runs it
1 cmd

$79$129once, for life

Already have Pro? Sign in to set up your API key.

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>
PropTypeDefaultDescription
palettereadonly string[]PALETTEAny CSS colors (var(--token) too): the ground, the second ground, then the look colors.
speednumber—The time scale: 1 (default) is the designed speed, 0 a still frame.
pausedboolean—True holds the current frame. Default false.
trigger"hover""loop"—When it moves: loop (default) or hover. It draws its first frame either way.
seednumber—Another seed gives another field of the same look. Default 0.
pressboolean—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.
pointerboolean—True: the field leans toward a mouse or pen over the box. Default false.
fpsnumber—The most frames a second. Default: the display rate.
resolutionnumber—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.
vignettenumber—Darkens toward the corners, 0 to 1. Default 0.
fallbackboolean—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.
landScalenumber—How many landforms fit the box height. More gives smaller hills. From 0.5 to 8. Default 1.75.
ridgesnumber—How tall and sharp the mountain ridges are against the plains. From 0 to 1.5. Default 1.
bendnumber—How much the land twists, from straight folds to winding valleys. From 0 to 2.5. Default 0.8.
detailnumber—The small wobble in every line. From 0 to 1. Default 0.5.
morphnumber—How fast the land reshapes over time. 0 keeps it still. From 0 to 2. Default 0.2.
contoursnumber—How many contour lines stack up the tallest mountain. From 6 to 70. Default 22.
lineWidthnumber—The width of a plain contour, in CSS px, near and far. From 0.4 to 4. Default 1.
indexWidthnumber—The width of a heavy index contour, in CSS px. From 0.5 to 6. Default 1.7.
indexEverynumber—Which contours draw heavy: every fifth at 5. A whole number from 2 to 10. Default 5.
elevationnumber—How tall the mountains rise. 0 lays the map flat. From 0 to 1.5. Default 0.46.
foregroundnumber—How much height the land keeps as it reaches the view. Low values keep the front clear. From 0 to 1. Default 0.2.
tiltnumber—The view angle in degrees, from low across the land to 90 for straight down. From 10 to 90. Default 32.
altitudenumber—How high the view flies over the land. From 0.4 to 2. Default 0.98.
glidenumber—How fast the view flies over the land. From 0 to 1. Default 0.1.
glownumber—The soft light around each line. From 0 to 2. Default 0.6.
focusBlurnumber—How much lines soften away from the focus, which follows the hand. From 0 to 1. Default 0.4.
fognumber—How fast the far land fades into the sky. From 0 to 1. Default 0.42.
brightnessnumber—The overall strength of the lines. From 0.1 to 2.5. Default 1.
sunAnglenumber—Where the low sun stands around the land, in degrees. From 0 to 360. Default 142.
sunGlownumber—How much brighter the slopes that face the sun burn. From 0 to 1.5. Default 0.55.
liftnumber—How high the land rises under the hand, and how bright it lights. From 0 to 1. Default 0.15.
reachnumber—How wide the hand reaches, in land units. From 0.1 to 1.5. Default 0.42.
trailnumber—How long the land takes to settle after the hand leaves. From 0 to 1. Default 0.3.
parallaxnumber—How far the view leans toward the hand. From 0 to 1. Default 0.5.
peaknumber—How tall the peak from a press grows. From 0 to 1. Default 0.42.
glitchnumber—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.
hoverEffect"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.
clickEffect"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.
majorLinesboolean—Draws every index contour heavier and brighter. Default true.
animateInboolean—The map starts flat and rises into mountains when it first runs. Default true.
maskSoftnessnumber—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.
  • Use tilt and altitude for the view, and travel (forward, backward, left, right) for the way it flies.
  • Use hoverEffect (lift, trace, light) and clickEffect (pulse, peak, none) for what the hand and a press do.
  • Use markers (plus or dots) to add survey marks on a grid.
  • Use mask (top, bottom, edges, or radial) to fade an edge into the page, and maskSoftness for the width of the fade.
Show
chart · 600ms · ease-panel · the picture fades in after its first drawn frame
Loop
progress · the picture moves on its own clock at one speed; `speed` scales it, and 0 shows a still frame
  1. AddedContour Range Background.
Open the release