The pin-art toy: a hexagonal board of pins with your shape in relief. The hand pushes pins down and they climb back one by one.
Open full screen
When to use Use it as a decorative panel that fills its parent, with a preset shape or your own SVG path through shape. The pointer pushes pins down and they rise back; on touch a ghost hand retraces the outline. It is not a control and has no keyboard interaction.
When not to use Do not use it where information matters or on dense screens and forms, since it is a purely decorative WebGL board. Use a static logo image where motion would distract.
Use it for a brand mark or an empty state: a sign-in screen, an onboarding panel or an empty dashboard card. It is decorative, not a control.
CLI Manual
pnpm dlx shadcn@latest add @motionkit-pro/pin-screen
npx shadcn@latest add @motionkit-pro/pin-screen
yarn dlx shadcn@latest add @motionkit-pro/pin-screen
bunx --bun shadcn@latest add @motionkit-pro/pin-screen Requires a Pro license and the @motionkit-pro registry with your token. See Installation .
The files land in components/effects/.
The root fills its parent, so the parent needs a size.
import { PinScreen } from "@/components/effects/pin-screen"
export function EmptyState () {
return (
< div className = "h-96" >
< PinScreen shape = "triangle" aria-label = "A triangle in relief" />
</ div >
)
}
To use your own shape, pass a path and its view box:
< div className = "h-96" >
< PinScreen
shape = {{ d: "M10 90 L50 10 L90 90 Z" , viewBox: "0 0 100 100" }}
aria-label = "Company mark in relief"
/>
</ div >
The hand presses the pins within handRadius, a fraction of the shorter side.
Pressed pins rise back in 600 to 900 ms without bounce, each with its own delay.
The shape emerges once, with a wave from the center.
On touch, a ghost hand retraces the outline of the shape. A finger takes over, and the ghost resumes 1.5 s after release. The page keeps scrolling.
relief is the height of the shape in pin spacings, from 0 to 6. density multiplies the pin count, capped at 2,500 on touch and 6,000 on desktop.
brass (default): warm metal, medium relief.
steel: more pins, taller relief, sharp highlights.
chalk: fewer matte pegs, low relief.
temperament (calm, lively, playful) scales speed and strength on top of the preset. An explicit prop always wins over the preset.
Color props take any CSS color: hex, RGB, HSL or OKLCH.
< PinScreen
shape = "triangle"
aria-label = "A triangle in relief"
pinColor = "#6b7a8c"
shapeColor = "#f2b84b"
baseColor = "#141a22"
lightColor = "#fff6e0"
/>
Also accepts all props of Omit<ComponentProps<"div">, "children"> .
The root has role="img". Pass an aria-label that describes the shape.
The board is not focusable and has no keyboard interaction.
With reduced motion, and when WebGL is not available, the component paints a still frame of the same pins on a 2D canvas, with the shape in relief. The component reads usePrefersReducedMotion, so the MotionKitProvider setting applies too.
One instanced draw call.
ogl is loaded on mount.
The loop stops off screen and in hidden tabs.
The device pixel ratio is capped at 1.5 on touch.
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 15.0 kB gzip
Component and MotionKit helpers; excludes react, react-dom, ogl.
Reduced motion One still frame of the same pins with the shape in relief, painted on a 2D canvas.
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) (runs) Visual light/dark (not applicable) shadcn install (runs) 4× CPU smoothness (runs)