animation-principles
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseAnimation principles
动画原则
This skill reviews how motion is staged once the timing function is chosen. It checks press feedback, deformation, stagger and focus.
Every check is a pair. The broken line sits beside the line that replaces it.
Press scale, squash and stagger amounts below are exact. A project that omits press feedback on a control is a finding. A project that uses one consistent scale near is not. Curves, the cap and context-menu entrances belong to . Exit mounting belongs to .
0.98300mstiming-functionsexit-animations此 skill 审查在确定 timing function 后如何编排动效。它检查按压反馈、形变、stagger 和视觉焦点。
每项检查均成对呈现。错误写法与替代写法并排展示。
下方给出的按压缩放、挤压与拉伸、stagger 数值均为精确值。如果控件缺少按压反馈,则构成一个问题。如果项目统一使用接近 的缩放值,则不构成问题。曲线、 上限和 context-menu 入场属于 。退出挂载属于 。
0.98300mstiming-functionsexit-animationsWhen to use
使用时机
Use this when adding or reviewing animation on controls, lists, overlays or entrances. Use first when the question is spring versus easing. Use when a component fails to leave the tree.
timing-functionsexit-animations在为控件、列表、overlay 或入场效果添加或审查动画时使用此 skill。如果问题是使用 还是 ,请先使用 。如果组件未能离开渲染树,请使用 。
springeasingtiming-functionsexit-animations1. Read the motion in scope
1. 阅读范围内的动效
Read the files the user named. If none are named, ask which surfaces to review. Note each animated element and whether it is a press, a list entrance, an overlay or background decoration.
读取用户指定的文件。如果未指定任何文件,则询问需要审查哪些界面。记录每个带动画的元素,并注明它属于按压效果、列表入场、overlay 还是背景装饰。
2. Check staging
2. 检查编排
Similar controls share one duration. A primary button at and a secondary button at is .
200ms150mstiming-consistentAn interactive control needs an active scale. The published press scale is . Squash and stretch stay inside to . of is .
0.980.951.05whileTap0.8physics-subtle-deformationStagger stays under per item. passes. is .
50msstaggerChildren: 0.030.15physics-no-excessive-staggerOnly one element animates prominently at a time. That is . A modal or dialog dims what is behind it, as in , which is . A tooltip or overlay that can paint underneath siblings is .
staging-one-focal-pointbackground: var(--black-a6)staging-dim-backgroundstaging-z-index-hierarchySprings used for overshoot, ease curves and the cap are . Cite that skill beside a duration finding. Do not restate its curve table here.
300mstiming-functions相似的控件使用相同的持续时间。主按钮为 、次按钮为 ,属于 。
200ms150mstiming-consistent交互式控件需要具备激活态缩放。规范规定的按压缩放值为 。挤压与拉伸应保持在 到 之间。 设为 属于 。
0.980.951.05whileTap0.8physics-subtle-deformation每项的 stagger 应低于 。 通过检查。 属于 。
50msstaggerChildren: 0.030.15physics-no-excessive-stagger同一时间只能有一个元素被突出地设置动画,这属于 。modal 或 dialog 应通过类似 的方式弱化后方内容,这属于 。如果 tooltip 或 overlay 可能绘制在兄弟节点下方,则属于 。
staging-one-focal-pointbackground: var(--black-a6)staging-dim-backgroundstaging-z-index-hierarchy用于产生超调的 、 曲线和 上限均属于 。发现持续时间问题时,请在旁边引用该 skill。不要在此重复其曲线表。
springease300mstiming-functions3. Report and stop
3. 报告并停止
Write the findings, then the summary table. Do not restyle the motion while reporting unless the user asked for a fix.
先写出发现的问题,然后给出汇总表。除非用户要求修复,否则报告时不要调整动效样式。
The pair
成对检查
Every check is a pair. The broken line sits beside the line that replaces it.
| Rule | Broken | Replacement |
|---|---|---|
| | Both controls at |
| | |
| | |
| | |
| Two siblings both | One element carries the entrance |
| | |
| | |
每项检查均成对呈现。错误写法与替代写法并排展示。
| 规则 | 错误写法 | 替代写法 |
|---|---|---|
| | Both controls at |
| | |
| | |
| | |
| Two siblings both | One element carries the entrance |
| | |
| | |
Reporting
报告
Severity. Use the ladder in this skill. Do not raise a preference to .
HIGHVerification. Read the declared values in the files in scope. A browser is optional. Mark any check you could not run as .
Not verifiedFormat. One finding per root cause:
file:line - [rule-id] what is wrongThen a summary:
| Rule | Count | Severity |
|---|
BlockHIGHApproveApprove严重程度。 使用此 skill 中的分级阶梯。不要将偏好项提升为 。
HIGH验证。 读取范围内文件中声明的值。浏览器验证是可选的。将任何无法执行的检查标记为 。
Not verified格式。 每个根本原因只写一个问题:
file:line - [rule-id] what is wrong然后给出汇总:
| 规则 | 数量 | 严重程度 |
|---|
只要仍有任何 ,就判定为 ;否则判定为 ,并在表中保留严重程度较低的项。绝不能对未读取的文件给出 。如果没有需要报告的问题,请说“无可执行的问题”,并列出未验证的内容。
HIGHBlockApproveApprove