Sections
All-AccessNewWebGLCanvasA showreel that really plays, thrown on a bedsheet pegged to a line at dusk: the hand presses the cloth from behind, the queue is the other laundry and the hem is the scrub bar.
Use it for a showreel, a programme of short films or a product video with two or three alternatives, where the player itself should carry the page.
pnpm dlx shadcn@latest add @motionkit-pro/bedsheetnpx shadcn@latest add @motionkit-pro/bedsheetyarn dlx shadcn@latest add @motionkit-pro/bedsheetbunx --bun shadcn@latest add @motionkit-pro/bedsheetRequires an All-Access or Signature license and the @motionkit-pro registry with your token. See Installation.
The files land in components/sections/.
import { Bedsheet } from "@/components/sections/bedsheet"
export default function Page() {
return <Bedsheet films={FILMS} variant="line" />
}line (default): preview it with ?demo=default.single: preview it with ?demo=single.pair: preview it with ?demo=pair.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 |
|---|---|---|---|---|---|
films[].poster | string | any, landscape reads best | no | 300 KB | The still of each film: the poster of a video, or, without src, the film itself, played as a slow cut through the photograph. Without poster or src the section draws an abstract title card in its own colours. |
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.
<Bedsheet films={FILMS} content={{ title: "Your title" }} />Prop
Type
Every colour is a prop and takes any CSS colour: hex, RGB, HSL or OKLCH.
<Bedsheet
films={FILMS}
colors={{
dusk: "#512600",
glow: "#58d1e5",
sheet: "#e3f1fb",
peg: "#00a485",
line: "#76adc8",
text: "#e3f1fb",
}}
/>use-prefers-reduced-motion, fx-runtime, motion-presets, motion-kit, section-runtime.swipe: rows scroll sideways with snap points. Vertical scroll is never blocked.
The sheet hangs flat with two fixed folds and no hand; switching films cross-fades, stills cut without pushing in, and nothing autoplays.
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 sheet hangs flat with two fixed folds and no hand; switching films cross-fades, stills cut without pushing in, and nothing autoplays.
No keyboard interaction of its own.
Last 2 versions of Chrome, Edge, Firefox and Safari (iOS 16.4+)