Skip to content

Isobar Chart Background

Free

Weather pressure rings around drifting H and L marks; the hand is a storm.

  • React 19
  • Tailwind CSS 4

Added Nov 24, 2026 · MIT + Commons Clause

Playground

Loading the preview

Props

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:

isobar-chart-hero.tsx

IsobarChartBackground

<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.
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.
cellSizenumber0.3The size of each weather system, as a share of the box height. From 0.12 to 0.6. Default 0.3.
wandernumber0.12How far each weather system drifts from its home. From 0 to 0.4. Default 0.12.
roughnessnumber0.12The small bends in the lines between the systems. From 0 to 0.4. Default 0.12.
isobarsnumber13How many pressure lines one unit of pressure holds. From 4 to 40. Default 13.
lineWidthnumber0.9The width of a pressure line, in CSS px. From 0.4 to 3. Default 0.9.
indexWidthnumber1.8The width of a heavy pressure line, in CSS px. From 0.5 to 4. Default 1.8.
indexEverynumber4Which pressure lines draw heavy: every fourth at 4. A whole number from 2 to 8. Default 4.
markSizenumber11The half height of the H and L marks, in CSS px. 0 hides them. From 0 to 28. Default 11.
liftnumber0.75How deep the storm under the hand is. Needs the pointer on. From 0 to 1.5. Default 0.75.
reachnumber0.2How wide the storm under the hand is, as a share of the box height. From 0.05 to 0.5. Default 0.2.
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 cellSize and wander for the size of each weather system and how far it drifts.
  • Use markSize for the H and L marks; 0 hides 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. AddedIsobar Chart Background.
Open the release