Install
One package. No runtime dependencies.
npm install background-clouds
A tiny, zero-dependency canvas background that renders low-poly clouds behind any site. Seeded, responsive, and respectful of reduced-motion settings.
The controls below are connected to the package running in the background, so every change is rendered live.
One package. No runtime dependencies.
npm install background-clouds
Point it at a fixed canvas and keep the returned controller.
import { createCloudBackground } from "background-clouds";
const clouds = createCloudBackground({
canvas: document.querySelector("#background-clouds"),
seed: "my-site",
speed: 0.8,
opacity: 0.9
});
clouds.destroy();