Skip to content

Tide Map Background

Pro

A sea floods and leaves a contour map, with a bright moving shore.

  • 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

Tide Map 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:

tide-map-hero.tsx

TideMapBackground

<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.
pressbooleantrueTrue: 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.
pointerbooleantrueTrue: 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.
landScalenumber3.2How many landforms fit the box height. More gives smaller hills. From 0.5 to 8. Default 3.2.
ridgesnumber0.7How tall and sharp the mountain ridges are against the plains. From 0 to 1.5. Default 0.7.
bendnumber1.1How much the land twists, from straight folds to winding valleys. From 0 to 2.5. Default 1.1.
detailnumber0.5The small wobble in every line. From 0 to 1. Default 0.5.
morphnumber0.08How fast the land reshapes over time. 0 keeps it still. From 0 to 2. Default 0.08.
contoursnumber44How many land contours one unit of height holds. From 8 to 90. Default 44.
lineWidthnumber0.75The width of a land contour, in CSS px. From 0.4 to 3. Default 0.75.
indexEverynumber5Which land contours draw stronger: every fifth at 5. A whole number from 2 to 10. Default 5.
seaLevelnumber0.16The middle height of the sea. Higher floods more land. From -0.1 to 0.5. Default 0.16.
tideRangenumber0.055How far the sea rises and falls around its middle height. From 0 to 0.2. Default 0.055.
tideRatenumber0.32How fast the tide comes in and goes out. From 0 to 2. Default 0.32.
shoreWidthnumber2.2The width of the bright shore line, in CSS px. From 0.5 to 6. Default 2.2.
depthLinesnumber70How many depth lines one unit of depth holds. 0 removes them. From 0 to 140. Default 70.
driftnumber0.008How fast the land slides under the chart. From 0 to 0.2. Default 0.008.
liftnumber0.09How far the hand pushes the water back. Needs the pointer on. From 0 to 0.3. Default 0.09.
reachnumber0.18How wide the push of the hand is, as a share of the box height. From 0.04 to 0.5. Default 0.18.
maskSoftnessnumber0.25The 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 seaLevel, tideRange, and tideRate for the middle height of the sea, how far it moves, and how fast.
  • Use depthLines for the depth lines in the sea; 0 removes them.
  • 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. AddedTide Map Background.
Open the release