Adapting to iPhone Duo
Use a foldable device changing from narrow to wide to demonstrate how a workspace reallocates space. Content reflows while the sidebar and body retain their own behaviors.
View HTML source
<!doctype html><html lang="zh-CN"><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1"><title>Adapting to iPhone Duo · sequence</title><style>html,body{margin:0;width:100%;height:100%;overflow:hidden;background:#ffffff}canvas{display:block;width:100%;height:100%;object-fit:contain}</style><body data-mode="sequence"><canvas width="1000" height="600"></canvas><script src="data.js"></script><script src="common.js"></script><script src="scene.js"></script><script src="bridge.js"></script></body></html>Motion and composition
Local motion · Composition rules
Add space when unfolding instead of stretching text
View HTML source
<!doctype html><html lang="zh-CN"><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1"><title>Adapting to iPhone Duo · sequence</title><style>html,body{margin:0;width:100%;height:100%;overflow:hidden;background:#ffffff}canvas{display:block;width:100%;height:100%;object-fit:contain}</style><body data-mode="clip" data-start="0" data-end="3"><canvas width="1000" height="600"></canvas><script src="data.js"></script><script src="common.js"></script><script src="scene.js"></script><script src="bridge.js"></script></body></html>Gradually widen the device boundaries to give the body a larger visible area. Introduce the sidebar as fixed navigation and reflow body content to fit the width; keep text sizes and icon proportions stable.
Scrolling and the keyboard affect only relevant areas
Keep the sidebar stationary while body content scrolls. Show the keyboard after focusing text, and adjust lower content to the available height while keeping the insertion cursor visible; the device frame remains a stable reference.
Build hierarchy through clipping and layout
A light interface, dark sans-serif body text and thin dividers establish the workspace. Keep sidebar text less dense than body text and control device boundaries and content clipping separately; soft blue, apricot and purple provide secondary emphasis only.
Change workspace content while preserving responsive behavior
Replace the company homepage, notes or project document. Use content with varied paragraph lengths so the reflow after unfolding is clearly visible; time the keyboard's appearance to a genuine input focus.
Sections and rhythm
Click a section to seek to it in the choreography example above.






Visual references · Discrete still frames
Creating other themes
- Replace the workspace content; preserve narrow-to-wide layout reflow rather than stretching content horizontally.
Production constraints
Foldable device / Sidebar / Body content / Cursor / On-screen keyboard
- Unfolding increases the visible body area, with a parent-child clipping relationship between sidebar and body.
- Scrolling affects only the body; at the end, the keyboard covers the lower area and reduces the reading region.