topolines — animated topographic contour backgrounds for React

01 Relief

Animated topographic contour backgrounds.
One React component. Zero dependencies. Drawn on the GPU.

npm i topolines

Usage

One component. It fills its parent, sizes itself with a resize observer, and pauses when off screen.

import { Topolines } from "topolines/react";

export default function Background() {
  return <Topolines seed="topo" color="#F2EFE6" opacity={0.34} />;
}
See the docs →

Recipes

Theme it from CSS variables, animate color on scroll, pin a section and freeze the pan, or stitch two instances into one continuous map.

Read the docs →

The other one

Same hands, same rules: one effect, no runtime dependencies, all of it on the GPU.

revealed

Paint one image out of another. Two pictures are stacked in the same box, and wherever the pointer moves the top one is eaten away along a fractal, noise-carved edge that bulges, tears itself into islands and keeps travelling for about a second after you stop. Then it heals over.

npm i revealed