Sections
All-AccessNewWebGLCanvasTestimonials on moving water: a pool seen from above where changing the quote sends one swell down the lane, carrying a float with it.
Use it for the testimonials of a place or a service where one voice at a time reads best.
pnpm dlx shadcn@latest add @motionkit-pro/lane-fournpx shadcn@latest add @motionkit-pro/lane-fouryarn dlx shadcn@latest add @motionkit-pro/lane-fourbunx --bun shadcn@latest add @motionkit-pro/lane-fourRequires an All-Access or Signature license and the @motionkit-pro registry with your token. See Installation.
The files land in components/sections/.
import { LaneFour } from "@/components/sections/lane-four"
export default function Page() {
return (
<LaneFour
background="/sections/lane-four-pool.webp"
float="/sections/lane-four-float.webp"
variant="surface"
/>
)
}surface (default): preview it with ?demo=default.deep-end: preview it with ?demo=deep-end.lanes: preview it with ?demo=lanes.The demo images stay on this site and are not installed: pass your own through the props below.
| Prop | Type | Ratio | Transparent | Max weight | Notes |
|---|---|---|---|---|---|
background | string | any (cover crop), 1:1 to 16:9 reads best | no | 400 KB | Overhead photograph of water, nothing floating in it. Only its light is used, tinted with water and deep. Without it the pool draws its own caustics. |
float | string | any; the object fills the frame | yes, cut-out | 150 KB | PNG or WebP with alpha, seen from above, about 480 px. Shape, shadow, reflection and ripple come from the alpha; its colours are kept. Without it a ring is drawn in ring. |
Use WebP or JPEG (WebP or PNG for cut-outs); host the files on your own origin or send CORS headers.
Every text, button names included, lives in one typed content prop; keys you leave out keep the demo copy shown above.
<LaneFour
background="/sections/lane-four-pool.webp"
float="/sections/lane-four-float.webp"
content={{ title: "Your title" }}
/>Prop
Type
Every colour is a prop and takes any CSS colour: hex, RGB, HSL or OKLCH.
<LaneFour
background="/sections/lane-four-pool.webp"
float="/sections/lane-four-float.webp"
colors={{ water: "#df6a59", deep: "#6f1d00", ring: "#00a680", rope: "#61dbff", chalk: "#fcf2f3" }}
/>use-prefers-reduced-motion, fx-runtime, fx-glsl.content.reflow: the same content is redrawn for the narrow screen. Vertical scroll is never blocked.
Still water with a frozen wake behind the float; quotes cross-fade with opacity only.
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 with a frozen wake behind the float; quotes cross-fade with opacity only.
No keyboard interaction of its own.
Last 2 versions of Chrome, Edge, Firefox and Safari (iOS 16.4+)