Contour

Drifting topographic isolines for quiet map-like fields.

A canvas height field rendered as contour lines. The ridges drift slowly, closer to a topo map than a particle grid.

9
18px
1.15px
1
1
0.55
tsx
import { Contour } from "@/components/motion/contour"export function Example() {  return (    <Contour      className="h-[420px] w-full"      color="#3b82f6"      levels={9}      cellSize={18}      lineWidth={1.15}      speed={1}      warp={1}      opacity={0.55}    />  )}

Installation

npx @arctis-sh/@arctis-sh/ui@latest add contour

Usage

import { Contour } from "@/components/motion/contour"
<Contour  className="h-[420px] w-full"  color="#3b82f6"  levels={9}/>

API Reference

Contour

PropTypeDefault
colorstring#3b82f6
backgroundColorstring—
levelsnumber9
cellSizenumber18
lineWidthnumber1.15
speednumber1
warpnumber1
opacitynumber0.55
dprnumber1.5
classNamestring—
childrenReactNode—

Also accepts the other native div attributes. cellSize and lineWidth are in pixels.