No. 151 Write the change
Motion from state changes
Check motion by state changes such as appear, disappear, and move, not by walking a component list.
- Claude Code
- Codex
- Cursor
- Gemini
- Write the change
译 Bring the project's motion to a fine, smooth bar. Review the whole project yourself, and also have Gemini act as the advisor for the plan, the copy, and the interaction. After the review, implement it directly. How to look: do not list parts. Look by state change. Whenever anything on the interface changes state — appearing, disappearing, moving, changing size, changing content, changing icon, a number ticking, press, hover, loading, completion, error — ask whether the user can understand the change. Did it jump, or did it arrive and leave in a way that explains itself? From page changes down to an icon, a number, or a check, that is all in range. What good motion does: - It explains what happened: where something came from, where it went, and what it relates to. It is not decoration. - The project has one language: the same kind of change uses the same curve and rhythm. Unify what the project already has, and do not invent a new one in each place. - Restraint: fast, light, and not competing for attention. Actions the user repeats should be faster. Prefer too little motion over motion everywhere. - It follows the pointer and can be interrupted: dragging and resizing follow the hand, and a new action during an animation takes over cleanly. - It does not spend performance: move only what is necessary, stay smooth in long content, and measure before delivery. - It adds no new problem: no shake, no flash, no reflow, no overflow, and it respects the system's reduced-motion setting. - It holds on a phone, a narrow window, a wide screen, and in light and dark. Afterward have GPT review it, then merge and ship.
When to use
When a total jumps from 0 with no transition, this prompt asks whether that jump is understandable, instead of bouncing every button.
The input is the checkout total component path and one sentence: when loading finishes, the number jumps.
When not to use
When the person has enabled reduced motion, do not force the animation to finish for the sake of smoothness.
How to run it
Claude Code
Claude Code edits the motion and looks once at narrow, wide, light, and dark. Record Gemini's advice separately. It does not replace that viewing.
Codex
Ask Codex to look at performance and overflow, and paste the measurements back. Do not hand the motion style to a turn that only names curves.
Cursor
Paste it in the chat that edits one state component. Do not turn the whole motion standard into a global .cursor/rules file.
Comparison
对比待补
This before-and-after was not run on this machine.
Related
- Stage: Write the change
来源:数字生命卡兹克 · https://x.com/Khazix0918/status/2125110224143171669 · 2026-12-02