Comet | A row of planets
Create focused browsing with a horizontal planet row. Control row translation, sphere rotation, and focus enlargement independently, keeping the background calm.
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|A row of planets · sequence</title><style>html,body{margin:0;width:100%;height:100%;overflow:hidden;background:#faf8ef}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
Arrange objects along one axis
Place spheres around a shared horizontal centerline with slightly varied sizes, naturally cropping edge objects at the viewport. Fix top navigation, corner tiles, and fine orbit lines in the background rather than moving them with the row.
Create breathing room with warm white, deep teal text, and muted backgrounds, using surface textures for most color. Keep object names short and clear, with secondary entries lighter than names.
A focus change does not stop the row
Keep spheres rotating slowly as the row slides sideways. Slightly enlarge objects entering focus, then reveal name and entry; on exit, remove text before restoring normal size.
Avoid making every sphere bounce or reveal names together. Reserve large movements for row shifts and small movements for rotation and focus feedback.
Looping and content replacement
Return to the initial arrangement in a sensible direction, maintaining spacing and speed continuity. For products, albums, or features, prepare distinct appearances and names while preserving a stable background, moving row, and single focus.
Sections and rhythm
Click a section to seek to it in the choreography example above.






Visual references · Discrete still frames
Creating other themes
- Adapt to multi-product browsing, retaining the object row, focus state, name, and entry
- Replace textures with product appearances; the static background must not move at the row's speed
Production constraints
Top navigation / planet row / active planet / name and entry / rounded background tile / fine orbit line
- Slide spheres along one horizontal axis, clipping both ends at the viewport; slightly enlarge the active sphere and reveal its text
- Surface textures keep rotating; row translation and axial rotation are independent
- Return the row to its original position at the end for looping browsing