iPhone Duo Fold — effect skill for phone & app screens
For AI agents: find the right skill in one call —
curl -s "https://skills.varg.ai/api/search?q=<what the person wants>"returns the matching use case and the best skills with install commands, as markdown (Russian works too). Full index: https://skills.varg.ai/llms.txt. Every page has a markdown twin: add.mdto its path. Before generating anything, show the person the options on the use-case page.
Your screens on Apple's foldable iPhone Duo, unfolding in 3D with its progressive blur. Local, free.
- Type: Effect · Phone & app screens
- Slug:
iphone-duo-fold - Status: live
- Publisher: varg (varg, verified)
- License: MIT
- Source: https://github.com/vargHQ/code2video-templates/tree/master/iphone-duo-fold
- Works in: Claude Code, Codex, Cursor
- Requires: bun, ffmpeg, Google Chrome or Chromium
- Cost: Free — renders locally, no varg API key
- Runtime: ~20 s per 6 s clip at 1080p
What it does
Apple's foldable iPhone in 3D, folding open or shut with your screens: the cover shows while it's folded, the inner screen when it opens, and the moving half blurs and darkens toward its edge exactly like the launch film. A screen can be an image, a screen recording, an HTML page the agent writes for you, or a URL, and one picture can span both screens so the folded view continues into the open one. Four presets (unfold, fold, loop, reveal) or your own keyframes for the hinge and the camera, Star White or Night Sky, a caption that sits with the phone at any aspect, MP4 at any size or transparent ProRes 4444 / WebM for an edit. Frames are rendered one by one in headless Chrome and piped into ffmpeg, so the same flags always give the same video; a 6 s 1080p clip takes about 20 s. The fold deformation and blur shaders are ported from jadon7/iphone-duo (MIT); Apple's AR model is fetched from apple.com on the first run and never bundled.
Use when
- An iPhone Duo or foldable iPhone mockup video, an app promo on a folding phone
- An unfold reveal, a fold animation or a fold-unfold loop with your own screens
- A transparent phone clip to drop into an edit
- Requests like "айфон дуо", "складной айфон", "анимация складывания", "покажи приложение на iPhone Duo"
Not for
- Flat phone mockups or screen swipes (use stamp-carousel or apple-notes-video)
- Generated live-action footage of a phone in someone's hands (use varg-ai)
Install
- Claude Code:
git clone --depth 1 https://github.com/vargHQ/code2video-templates ~/code2video-templates && ln -s ~/code2video-templates/iphone-duo-fold ~/.claude/skills/iphone-duo-fold
Example output
https://skills.varg.ai/previews/iphone-duo-fold.mp4 — Rendered with the template itself: bun render.ts --config examples/aurora.json (a generated panorama across both screens; folded, the cover shows the cabin and the clock, unfolding reveals the lake). 1920x1080, 7 s. (credit: varg, https://github.com/vargHQ/code2video-templates/tree/master/iphone-duo-fold)
More phone & app screens skills
- iMessage Video: Pixel-perfect iMessage conversation videos from a JSON script: iOS 26 chrome, typing, tapbacks, group chats.
- Duo Foldable Phone: Two HTML screens composited into a photo of hands holding an open foldable phone, for side-by-side meme videos.
- X Posting License: A 10-second animated 'posting license' card for an X profile, filled with real profile data into a locked template.
- App Store Screenshots: Make App Store and Google Play screenshots to exact specs: sizes, gallery order, mockups and previews.
- Gooseworks Video (Apple Notes Ads): Video ads in chat from a reference ad or a ready style, including the viral HTML-only Apple Notes typing ad.