Sections
All-AccessNewWebGLCanvasImpact figures as heaps of salt on a dyke, each as tall as its figure, poured while the numbers count; a rake drawn through the brine breaks their reflection.
Use it for three or four impact figures of a season or a year. Figures have different units, so each heap is scaled on its own, linearly from zero against that figure's largest value over every season (or its max): the heap shows how this season compares with the figure's own history, and 0 is no heap.
pnpm dlx shadcn@latest add @motionkit-pro/salternnpx shadcn@latest add @motionkit-pro/salternyarn dlx shadcn@latest add @motionkit-pro/salternbunx --bun shadcn@latest add @motionkit-pro/salternRequires an All-Access or Signature license and the @motionkit-pro registry with your token. See Installation.
The files land in components/sections/.
import { Saltern } from "@/components/sections/saltern"
export default function Page() {
return <Saltern stats={STATS} seasons={SEASONS} variant="heaps" />
}heaps (default): preview it with ?demo=default.single: preview it with ?demo=single.tiles: preview it with ?demo=tiles.Every text, button names included, lives in one typed content prop; keys you leave out keep the demo copy shown above.
<Saltern stats={STATS} seasons={SEASONS} content={{ title: "Your title" }} />Prop
Type
Every colour is a prop and takes any CSS colour: hex, RGB, HSL or OKLCH.
<Saltern
stats={STATS}
seasons={SEASONS}
colors={{
sky: "#b2e8fa",
salt: "#ddf7ff",
shade: "#cabd9a",
dyke: "#425430",
brine: "#84d1af",
sea: "#a14206",
tile: "#009794",
ink: "#1c2c09",
cream: "#ddf7ff",
}}
/>use-prefers-reduced-motion, fx-runtime, motion-presets, motion-kit, section-runtime.stack: columns stack, text first. Vertical scroll is never blocked.
Still water and a perfect mirror, the heaps at full height and the final figures shown at once.
pnpm size).Main spring of each temperament. Set it with the temperament prop or MotionKitProvider; the default is lively.
Not measured yet · budget 16.0 kB gzip
Component and MotionKit helpers; excludes react, react-dom.
—
Still water and a perfect mirror, the heaps at full height and the final figures shown at once.
No keyboard interaction of its own.
Last 2 versions of Chrome, Edge, Firefox and Safari (iOS 16.4+)