
Dispense Line-upFeatures
Motionboard shot: Card Flip to Code
The preview card rotates 180° around the Y axis and its back face shows the code.
Build a 940×680px card in a 3D stage (perspective 2400px, perspective-origin 820px 500px). Rotate it rotateY 0° to 180° about its center in 0.8s (24 frames) on power3.inOut, cubic-bezier(0.65,0,0.35,1). The back face is rotateY(180deg), a dark code editor (#0d1117), and the second turn continues 180° to 360° in the same direction.
Keep the window chrome, sidebar and header still during the flip. While the card is edge-on, its shadow narrows to scaleX 0.04 and a black shading overlay rises to 0.2 opacity, both read from the same eased angle each frame. The cursor clicks the Preview/Code switch at 0.98s and the flip starts at 1.03s.
Press the copy button to send this recipe to Claude Code or Codex, or install the skill once with npx skills add krisyangdev/motionboard. The agent builds the card with its preview face and its code face. Render an MP4 with HyperFrames, or port the GSAP timeline to your website.
npx skills add krisyangdev/motionboardPreview and code are the front and back of one card, which says they are the same thing. The surrounding interface stays completely still during the flip, so the motion happens on one element only.
cubic-bezier(0.65,0,0.35,1) (power3.inOut) curve for each 180°; Preview/Code pill slides 0.2s expo.out; cursor press scale 0.86 over 0.06s, release 0.18s back.out(2)scale 1→1.05 over 9.4s linear; 3D stage perspective 2400px, perspective-origin 820px 500px; edge-on the card shadow narrows to scaleX 0.04rotateY 0→180° about its center; the second turn continues 180→360° in the same direction; the back face is rotateY(180deg), a dark code editor (#0d1117) with file tabs, an install command, and line-numbered TSX; the front is white with a dot gridBuild a preview-and-code switch called Card Flip to Code. Put a 940×680px component card in a light app window with perspective 2400px (origin 820px 500px). Clicking a Preview/Code segmented control (the pill slides over 0.2s with expo.out) starts a 0.8s rotateY from 0 to 180° about the card center with power3.inOut. The back face is rotateY(180deg), a dark code editor, and both faces use backface-visibility: hidden. The card shadow width (down to scaleX 0.04) and a black shading overlay (up to opacity 0.2) follow the same eased angle every frame. Hold about 1s, click back, and keep rotating from 180 to 360° in the same direction. Repeat for three components, swapping card, title, panel and sidebar row on a single frame between them, and leave the last one on code. Window chrome stays still, the camera pushes scale 1 to 1.05 over 9.4s, and at 9.4s the window leaves and your wordmark lands.
A card flip rotates a card 180° around its vertical axis to show the reverse side. In a UI it switches between two views of the same item, such as a preview and its code.
Give the container a perspective, rotate the card with rotateY from 0° to 180°, place the back face at rotateY(180deg) and hide back faces with backface-visibility. This recipe drives the angle from a GSAP timeline.
Yes. Motionboard is free and MIT licensed, so you can use and modify the recipes and the films they produce in personal and commercial projects. The licence asks only that copies of the recipe files keep the copyright notice.













