
Motionboard recreation · no launch-film original
Rack Focus
A large insight card sits sharp in the foreground with a blurred laptop behind it. Focus pulls to the laptop, the card softens and drifts away, a second card slides in from the right and takes focus back, and a last pull lands on the headline Every dollar, in focus. before the Corsa lockup.
How to make a Rack Focus with Claude Code or Codex
Copy the recipe above and paste it into Claude Code or Codex. The agent installs the skill and builds the shot.
npx skills add krisyangdev/motionboardHow it's built
Give every plane a depth and drive the film with one focus distance: foreground cards 0, laptop 0.8, headline 1.5. Interpolate the focus with power2.inOut, 2.5–3.4s to the laptop (0.9s), 4.9–5.8s back to the cards (0.9s) and 7.1–8.1s to the headline (1.0s). Each frame, blur a plane by its distance to the focus: 40px per unit in front of it up to 24px, 28px per unit behind it up to 22px. Scale a defocused foreground card up 5% for focus breathing and add a linear parallax drift of 10–60px so the planes read as layers.
Keep each rack to two planes. The 700x448px insight card (scaled 1.2x, left of centre) is sharp for the first 2.5s while the laptop behind it is blurred, then drifts 380px left over 3.0–4.4s after the first pull. The approval card (520x338px, scaled 1.2x) slides in from the right at 4.6–5.6s and takes focus back at 5.8s. The headline fades in at 7.5–8.3s only for the last pull, while the laptop drops to 45% opacity. Give each hold something to read: a count from 12.9 to 14.2, a new transaction row at 3.75s, an Approve press at 6.2s.
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 cards, the laptop dashboard and the focus math. Start the lockup at 9.3s with the mint mark, the word Corsa and a tagline racking from 14px blur to sharp. Render an MP4 with HyperFrames, or port the GSAP timeline to your website.
Full recipe
Why it works
One shared focus distance drives the whole film and each plane computes its blur from its own distance to it, so one plane going soft and another going sharp happen on the same frame and the same easing curve, and the viewer reads a lens turning its focus ring. The foreground card grows slightly as it defocuses, which is real lens focus breathing, and a slow parallax drift keeps the order of the planes visible. Each rack shows only two planes: the insight card against the laptop, the approval card against the laptop, then the headline against the defocused laptop; one card drifts out before the next comes in, so the frame never holds three layers at once. Each pull is followed by a hold of about 1.5s with something happening on the interface (a counting number, a new transaction row, an Approve press), so there is content to read the moment focus lands. The headline appears last and sits on the farthest content plane, so it stays soft whenever focus is elsewhere. Bokeh lights sit at the back and swell and shrink with focus, giving the background a change on every pull. There is one accent color, mint #3fe0a5.
Spec
- Timing
- Film 10.6s. Insight card rises 0.1–0.9s; runway count 12.9→14.2 over 1.0–2.3s and sparkline draws 0.9–2.2s; rack 1 to the laptop 2.5–3.4s (0.9s); insight card drifts off left 3.0–4.4s; new transaction row 3.75–4.3s, cash 482,310→481,070 over 3.85–4.5s, tooltip $33.9k 4.2–4.55s; approval card slides in from the right 4.6–5.6s; rack 2 to the card 4.9–5.8s (0.9s); Approve pressed at 6.2s, budget bar fills 6.4–7.1s; card leaves 7.1–7.8s; rack 3 to the headline 7.1–8.1s (1.0s), headline fades in 7.5–8.3s, underline draws 8.15–8.85s; scene fades 9.1–9.6s; lockup rises 9.3–10.4s and holds to the end
- Easing
- All three racks use power2.inOut, interpolating the focus distance between keyframes; card rise and slide-in, number counts, underline and lockup rise use expo.out; sparkline, fades and blur recovery use power2.out; card exits use power2.inOut and power2.in; the background drift is linear (none)
- Camera
- Locked camera with one focus distance driving the film. Depths: foreground cards 0, laptop 0.8, headline 1.5, bokeh 2.0–2.5. Focus is 0 for 0–2.5s, 0.8 at 3.4–4.9s, back to 0 at 4.9–5.8s, then 1.5 at 7.1–8.1s. Blur radius: planes in front of the focus get 40px per unit of distance capped at 24px; planes behind it get 28px per unit capped at 22px. Focus breathing: a foreground card grows 5% when fully defocused, the laptop and headline at most 1.4%. Parallax drift is linear over the 10.6s: x offset headline 10px, laptop 22px, approval card 44px, insight card 60px, with y at 25% of x
- Subject
- Insight card 700x448px scaled 1.2x to about 840x538px, centred at (510, 700), left of centre; approval card 520x338px scaled 1.2x to about 624x406px, centred at (1500, 520), right of centre; laptop lid 1000x600px scaled 1.18x to about 1180x708px, centred near (1190, 640), screen 976x576px with 14–15px UI text (about 16.5–17.7px on screen) and a 1120x24px base; headline Every dollar, in focus. at 140px with 144px line height, centred; 7 bokeh discs of 65–180px with a thin brighter rim, a faint fill and a soft outer edge, clustered at the laptop's upper left and right at depth 2.0–2.5; diameter = size × (0.3 + 0.7 × min(1, |depth − focus| / 2.4)), opacity = (0.08 + 0.17 × (1 − that ratio)) × 0.75–1, with a 3px blur
- Sync
- In each rack one plane's blur rises while the other falls on the same frame and the same curve; the laptop is sharp at 3.4s and the new transaction row lands 0.35s later; focus settles on the approval card at 5.8s and Approve is pressed 0.4s after, with the figures and budget bar following; the headline starts to appear at 7.5s while focus is still moving and is sharp at 8.1s, when the underline begins; the laptop drops to 45% opacity at 7.2–8.1s so the headline owns the frame
- Style
- Background
#09090b, one accent mint#3fe0a5, neutral dark grey cards and UI; Inter throughout, headline weight 700; cards with 26px corners, a 1px hairline border and a large soft shadow; grain at 7% opacity re-rolled every 3 frames and a vignette reaching 50% at the edges
Prompt
Build a 10.6-second, 1920x1080, 30 fps dark product film called Rack Focus for a fictional product, Corsa (a team finance app). Background #09090b, one accent color mint #3fe0a5, font Inter. The frame has four planes, each with a depth: an insight card and an approval card in front (depth 0), a laptop in the middle (depth 0.8), the headline Every dollar, in focus. far back (depth 1.5), and 7 bokeh lights at the very back (depth 2.0–2.5). Drive the film with one focus distance f over time: 0 for 0–2.5s, to 0.8 over 2.5–3.4s, held at 0.8 until 4.9s, back to 0 over 4.9–5.8s, held at 0 until 7.1s, then to 1.5 over 7.1–8.1s, every segment eased with power2.inOut. On each frame compute each plane's blur radius from its distance to f: 40px per unit of distance when the plane is in front of the focus, capped at 24px; 28px per unit when it is behind, capped at 22px. Apply it as CSS filter: blur() on the plane. Scale a plane up as it defocuses (focus breathing): foreground cards up to 5%, laptop and headline up to 1.4%. Add a linear parallax drift: x offset = −u × factor, with u running from −1 to 1 over the film and factors of 10px for the headline, 22px for the laptop, 44px for the approval card and 60px for the insight card, y offset at 25% of x. Put all state in one render(t) function driven by one linear proxy tween from 0 to 10.6s, with no CSS animations. The insight card is 700x448px scaled 1.2x and centred at (510, 700): a Corsa Insight header, a number counting 12.9→14.2 months of runway, a +1.3 mo chip, a sparkline, one line of copy and two buttons. The laptop lid is 1000x600px scaled 1.18x and centred near (1190, 640), with a 976x576px Corsa dashboard: a 176px sidebar, three KPI cards (Cash balance $482,310, Monthly burn $33,920, Runway 14.2 mo), an 8-month spend bar chart with November in mint and a transactions table, UI text 14–15px. The approval card is 520x338px scaled 1.2x and centred at (1500, 520): Priya Nair requesting $2,400.00 for annual design seats, a Marketing budget $6,180 left bar, and Approve and Decline buttons. Timeline: the insight card rises 0.1–0.9s (expo.out, from 50px below, scale 0.94→1) and the other planes fade in 0–1.2s; the number counts to 14.2 over 1.0–2.3s and the sparkline draws 0.9–2.2s; rack 1 to the laptop 2.5–3.4s while the insight card drifts 380px left and fades over 3.0–4.4s; at 3.75–4.3s a row Planwise −$1,240.00 slides in at the top of the transactions table (the other rows move down 34px, the new row flashes mint), cash counts to $481,070 over 3.85–4.5s and a $33.9k tooltip appears on the chart at 4.2–4.55s; the approval card slides in from 340px right at 4.6–5.6s (expo.out); rack 2 back to the foreground at 4.9–5.8s; at 6.2s Approve is pressed (scale 0.95 and back), the label turns to Approved and the budget bar fills from 38.2% to 62.2% over 6.4–7.1s with the text changing to $3,780 left; the card leaves right 7.1–7.8s; rack 3 to the headline 7.1–8.1s, with the headline fading in 7.5–8.3s, the laptop dropping to 45% opacity and a mint underline under focus. drawing 8.15–8.85s; the scene fades out 9.1–9.6s; the lockup rises 9.3–10.4s (120px mint mark, Corsa at 136px, Team finance, made clear. at 34px), going from 14px blur to sharp as it rises. Bokeh sits only at the laptop's upper left and right: diameter = size × (0.3 + 0.7 × min(1, |depth − f| / 2.4)) and opacity = (0.08 + 0.17 × (1 − that ratio)) × 0.75–1, so the discs swell, shrink and dim with focus. Finish with 7% grain re-rolled every 3 frames and a vignette.
People describe it as
- The card in front goes soft while the laptop behind it comes into focus
- Focus moves between the near and far planes like a camera operator turning the focus ring
- The last pull brings the headline out of the blur
Often confused with
- Device Push-in FocusDevice Push-in Focus moves the camera toward parts of one device; in Rack Focus the camera stays still and focus moves between planes at different depths: foreground cards, the laptop and the headline.
- 3D Tilted UI with Depth of FieldTilted UI with Depth of Field leads the eye with a sharp band and graded blur across one tilted interface; in Rack Focus a whole plane is sharp at a time and the sharp plane changes over time.
FAQ
What is a rack focus in a product film?
A rack focus changes which plane of the scene is sharp during a shot. The camera stays still while one subject softens and another sharpens, which moves the viewer's attention from, for example, a notification card in front to the product behind it.
How do you make the focus pull look like a real lens?
Drive every plane from one shared focus distance and blur each plane by its distance to it, so the blur on one plane falls while the other rises on the same frame and curve. Add 5% scale growth on a defocused foreground plane for focus breathing, ease with power2.inOut over 0.9s and cap the foreground blur at 24px.
Is it free to use?
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.







