Comet | Nebula window
Use an expandable narrow window to contain large imagery: keep the page calm and concentrate changes in the window boundary and interior space.
View HTML source
<!doctype html><html lang="zh-CN"><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1"><title>Comet|Nebula window · sequence</title><style>html,body{margin:0;width:100%;height:100%;overflow:hidden;background:#f8f7f1}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
From narrow window to full-frame imagery
Center the initial capsule with full page whitespace around it. Elongate the window first, then widen its coverage, keeping top navigation in place throughout.
Keep imagery behind and text on the page layer

Use a pale warm background, fine dark text, and muted purple-blue imagery. Serif headings and light sans serif navigation may be used; do not scale text with the image. Assets must cover the largest window and remain continuous during enlargement without exposing edges.
Expand, hold, retract
Give attention to imagery during expansion, leave viewing time at full size, then retract along the same path to the entry. Transition corner radius with window size; control mask and texture separately rather than enlarging the whole page.
| Section | Production constraints |
|---|---|
| 0–3.4 seconds | Open the narrow window with continuously changing mask boundaries |
| 3.4–8.5 seconds | Hold full frame while imagery continues moving slowly |
| After 8.5 seconds | Retract to the central narrow window and original composition |
Preserve window logic when replacing content
Use space, material, product close-ups, or environmental imagery. Choose assets that withstand heavy cropping before framing the narrow window; replace branding and navigation while retaining the central entry, fixed navigation, and expansion-retraction relationship.
Sections and rhythm
Click a section to seek to it in the choreography example above.





Visual references · Discrete still frames
Creating other themes
- Replace with any immersive texture; preserve small entry→large world→small entry.
- The nebula is not a geometric measurement; replacement assets must support enlarged cropping.
Production constraints
Page navigation / capsule mask / nebula texture
- Keep navigation anchored at the top while only the central mask expands; separate internal imagery from container dimensions.
- Hold after full expansion, then retract along the reverse path to form a loop.