Sections
All-AccessNewWebGLCity air read from lichen: four survey figures stencilled on a slab of slate
Use After Rain for three or four figures of an environmental, survey or field-science organisation: the figures are stencilled on a slab of stone, a lichen grows beside each one as it counts up, and the hand is a passing shower that brightens the lichens where the stone is wet.
pnpm dlx shadcn@latest add @motionkit-pro/after-rainnpx shadcn@latest add @motionkit-pro/after-rainyarn dlx shadcn@latest add @motionkit-pro/after-rainbunx --bun shadcn@latest add @motionkit-pro/after-rainRequires an All-Access or Signature license and the @motionkit-pro registry with your token. See Installation.
The files land in components/sections/.
import { AfterRain } from "@/components/sections/after-rain"
export default function Figures() {
return (
<AfterRain
content={{
eyebrow: "Field survey · 2026",
headline: (
<>
Slow numbers. <em>Read every spring.</em>
</>
),
stats: [
{
value: 86,
unit: "",
label: "sites read",
species: "Xanthoria parietina",
lichen: "xanthoria",
},
{
value: 12,
unit: "spp.",
unitSpoken: "species",
label: "species found",
species: "Lecanora muralis",
lichen: "lecanora",
},
],
link: { label: "Read the survey", href: "/survey", note: "PDF · 20 pages" },
}}
/>
)
}Every text sits in one typed content prop; each key you pass replaces the default copy (a lichen
air survey in Rennes).
| Key | Type | Notes |
|---|---|---|
stats | { value, decimals?, unit, unitSpoken?, label, species, lichen, size? }[] | Up to four. lichen is "xanthoria" | "lecanora" | "parmelia" | "rhizocarpon"; \n in unit breaks the stencil line. |
headline | ReactNode | The heading (h2); <em> is set in the italic serif. |
eyebrow | ReactNode | Small stencilled line above the headline. |
link | { label, href, note? } | null | The one link at the foot of the slab. |
locale sets the number formatting.
slate (default): blue slate and white paint. Preview it with ?demo=default.limewash: a pale limewashed wall and ink. Preview it with ?demo=limewash.Prop
Type
Every colour is a prop and takes any CSS colour: hex, RGB, HSL or OKLCH. limewash has its own
stone, paint and page; the colours you pass replace only those keys. stone and wet are the dry
and wet slab, paint the stencilled figures and text, page the ground around the split edges,
and xanthoria, lecanora, parmelia and rhizocarpon the wet colour of each lichen (the dry
colour is derived, paler and duller).
<AfterRain
colors={{
stone: "#4a5470",
wet: "#2b3350",
paint: "#f7f6f0",
page: "#efe7d6",
xanthoria: "#e3a245",
lecanora: "#c6d28a",
parmelia: "#6fa58a",
rhizocarpon: "#c4e05a",
}}
/>use-prefers-reduced-motion, fx-runtime, fx-glsl, section-runtime.stack: figures one under the other, lichens alternating sides. On touch screens a light shower
passes on its own every 14 s; vertical scroll is never blocked.
The lichens are full grown and the figures show their final values; the slab stays dry, no shower passes.
ogl loads the first time the slab nears the viewport; until then (and without WebGL) a CSS
stone stands in, with the figures at their values.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.
—
The lichens are full grown and the figures show their final values; the slab stays dry, no shower passes.
No keyboard interaction of its own.
Last 2 versions of Chrome, Edge, Firefox and Safari (iOS 16.4+)