handscroll · , desktop 1440px
Desktop 320 768 1280
Light Dark
Open handscroll-demo.tsx Expand
When to use Use it as the work page of a studio with about five projects. It takes content.projects (title, place, year, length, image, href), an archive line and sort; variants table, ledger, lead. When not to use For a single case study use Patchwork . For a showreel with video use Bedsheet . Images should be wide strips of 5:1 or more.
Use Handscroll for an index of long things (surveys, routes, façades, timelines): each project is a
handscroll lying on a table, the title panel is its frontispiece and the roll is as thick as the
project is long, so the column of rolls is also a length gauge. Five projects read best.
CLI Manual
pnpm dlx shadcn@latest add @motionkit-pro/handscroll
npx shadcn@latest add @motionkit-pro/handscroll
yarn dlx shadcn@latest add @motionkit-pro/handscroll
bunx --bun shadcn@latest add @motionkit-pro/handscroll Requires an All-Access or Signature license and the @motionkit-pro registry with your token. See Installation .
The files land in components/sections/.
import { Handscroll } from "@/components/sections/handscroll"
export default function Page () {
return (
< Handscroll
content = {{
eyebrow: "Coastal surveys" ,
title : (
<>
Every wall, < em >end to end.</ em >
</>
),
lede: "Sea walls and promenades, photographed square-on and joined." ,
archive: { count: 12 , total: "4.2 km" , href: "/work" },
projects: [
{
id: "harbour" ,
title: "Harbour wall" ,
place: "Porthleven" ,
kind: "Sea wall" ,
year: 2025 ,
length: 240 ,
scale: "1:200" ,
code: "CS-25-01" ,
href: "/work/harbour" ,
image: { src: "/work/harbour-elevation.webp" , position: "50% 55%" },
back: "#2f5fae" ,
},
],
}}
/>
)
}
sort, defaultSort and onSortChange control the order ("newest" or "longest").
Content Copy Anchor Link
Every text sits in one typed content prop; each key you pass replaces the default copy (an
elevation survey office in Tokyo).
Key Type Notes projects{ id, title, place, kind, year, length, scale, code, colophon?, href, image?, back }[]One scroll each; length (metres) sets the roll's thickness, back its silk. eyebrowReactNodeSmall line above the title. titleReactNodeThe heading (h2); <em> is set in the seal colour. ledeReactNodeOne paragraph beside the title. archive{ count, total, href } | nullThe archive line and link under the scrolls; null hides it. archiveLine(shown, count, total) => stringIts text. sortLabelstringAccessible name of the sort control. sortLabels{ newest, longest }The two sort slips. sortNotes{ newest, longest }Caption announced when the order changes. openLabelstringThe link printed at the tail of each scroll. leadTerms{ length, print, survey }Terms of the open project's details in lead.
The demo photographs stay on this site and are not installed; the default content has none.
Prop Type Ratio Transparent Max weight Notes projects[].image.srcstring5:1 or wider no 300 KB A long, low elevation photographed square-on, about 2000 px wide.
image.size and image.position are CSS background values that crop the picture into the strip
(default cover, centred). Without an image the scroll is plain paper.
table (default): five tall rows, each scroll lying partly open. Preview it with ?demo=default.
ledger: dense 64 px rows for long archives, every scroll rolled until the hand opens it.
Preview it with ?demo=ledger.
lead: the first project lies fully open as the head of the section with its details, the others
are rows beneath it. Preview it with ?demo=lead.
Every colour is a prop and takes any CSS colour: hex, RGB, HSL or OKLCH. table is the
background, paper the scrolls' face, ink the text, seal the number squares and the title's
emphasis, knob the roller ends, shadow every shadow. Each project's back colours its silk and
roll.
< Handscroll
colors = {{
table: "#f1ebe0" ,
paper: "#fdfbf6" ,
ink: "#1d2333" ,
seal: "#d2432c" ,
knob: "#c08a4a" ,
shadow: "#22408f" ,
}}
/>
None of the Interface components.
Shared helpers installed with it: use-prefers-reduced-motion, fx-runtime, section-runtime.
The projects are an ordered list of headed links; arrow keys, Home and End move between them, and
focusing one opens its scroll.
Sorting is a radio group with a polite caption; every link covers its whole title panel.
The rolls and the strips are decorative and hidden from assistive technology.
stack: the title panel above each strip. On touch screens a sideways drag on a strip unrolls that
scroll; vertical drags scroll the page.
The first scroll lies fully open and the others at rest; hovering or sorting changes them at once
with a short fade, without rolling.
Each roll is a small canvas, sized and painted the first time the section nears the viewport.
One rAF loop that stops off screen, in a hidden tab and once every roll has settled.
Own code is checked against the sections budget (pnpm size).
Technical sheet Motion
calm 260 ms · bounce 0
lively 400 ms · bounce 0.3
playful 540 ms · bounce 0.45 Main spring of each temperament. Set it with the temperament prop or MotionKitProvider; the default is lively.
Size Not measured yet · budget 16.0 kB gzip
Component and MotionKit helpers; excludes react, react-dom.
Reduced motion The first scroll lies fully open and the others at rest; hovering or sorting changes them at once with a short fade, without rolling.
Keyboard No keyboard interaction of its own.
Browsers Last 2 versions of Chrome, Edge, Firefox and Safari (iOS 16.4+)
Tests in CI Unit (runs) Reduced motion (runs) Interaction (not applicable) axe (WCAG 2.2 AA) (not applicable) Visual light/dark (not applicable) shadcn install (runs) 4× CPU smoothness (runs)