Component packs › Backdrop › Contour Field

Contour Field

Topographic lines traced live from a moving height field; a hill rises under the pointer and the lines ring round it.

Contour Field is a background from Backdrop, a component pack with 6 animated backgrounds: Animated backgrounds made of fields, not blobs, that answer the pointer and the scroll. Price: $2 for the whole pack.

Built with: marching squares, index contours, pointer hill.

Code: React and Next.js (TypeScript), Vue 3, plain HTML/CSS/JS, Tailwind CSS v4 and Motion (motion.dev). No npm packages needed. Keyboard accessible, with a reduced-motion version, in dark and light.

Contour Field props

PropTypeDefaultDescription
liftnumber1Height of the hill the pointer raises, 0 to 2. Default 1.
densitynumber9Lines per unit of height. Default 9.

Methods on the ref

Use it in React

import ContourField from './ContourField';

<ContourField />

The Vue, HTML, Next.js, Tailwind and Motion versions take the same options.

More in Backdrop

Good for: Animated backgrounds.