punktraster

canvas dot raster
3.0 kB min+gzip
0 dependencies

A preloader drawn on one canvas instead of one node per tile. Configurable rows, columns, tile shape, and animation pattern, with a single animation frame driving every instance on the page.

Five live rasters: helix, ripple, download, upload and sweep.

Install

npm install punktraster
import { createGridLoader } from "punktraster";

createGridLoader(canvas, { rows: 5, cols: 5, pattern: "helix" });

See it

Why it stays cheap