1实现原理 · 为什么它能做到
产出是一份「填空即用」的品牌动效规范文档,固定七段并按序撰写(原则 → 令牌 → 动作库 → logo 规则 → 状态反馈 → 无障碍 → do/don't)。
A complete motion guidelines doc has seven parts. Author them in order:
先做规模判断再动手:一个站/一次活动走轻量版,产品走完整七段,跨产品+市场+广播则再加 Motion Personality 预设。
How many surfaces/teams will use this?
令牌命名必须语义化(按用途而非字面值),使数值可演进而不引发全局改名。
| Token values renamed constantly | Names are literal (`duration-250`) | Name by purpose (`duration-base`) so values can change |
进出场不对称与 stagger 上限被写成默认规则:出场比入场短、交错 30-50ms。
Default rule: exits are shorter than entrances; staggers use small offsets (30-50ms) so groups feel alive without dragging.
无障碍是必需段落而非附录:reduced-motion、光敏阈值、焦点可见、禁止仅靠颜色或动作表意。
- **Photosensitivity**: no more than 3 flashes per second; avoid full-screen high-contrast strobing.
「vibes 式规范」被当作反例:形容词无法实现,必然导致产品内不一致。
Why it fails: no named tokens, no values, no entrance/exit rule, nothing implementable — "smooth" and "snappy" contradict and every engineer interprets them differently
定位是 system-of-record:上游理论(三支柱、三层运动、1/3 规则)与个性预设分别由两个兄弟 skill 提供,本文档只引用不复制。
This doc is the *system-of-record* for a brand's motion; two sibling skills supply the upstream theory and the per-project feel — reference and apply them, don't duplicate their tables:
模板以可填空文的形式内嵌在 SKILL.md(含版本号、owner、八个分段与 ✅/❌ 占位)。
8. DO / DON'T
2核心能力
3外部依赖
| Kind | Dependency / Endpoint |
|---|---|
| package | 兄弟 skill:animation-principles(三支柱 / 三层运动 / 1-3 规则)与 motion-art-direction(Motion Personality 预设)——均属 iart-ai/motion-design-skills 仓库 |
| package | spring(stiffness, damping) 令牌(实现侧能力,文档只给命名位) |
4管控建议与判定依据
- SKILL.md: 纯提示词指令与规则文本,无脚本执行与外部影响
5第二遍独立确认
- [ok] 是否存在任何脚本或可执行片段 — 全目录只有 Markdown;代码块仅含 cubic-bezier 值、spring(stiffness, damping) 这类命名占位与模板文本,无 shell/JS 可执行语句。
- [discrepancy] 跨仓引用的两个兄弟 skill 是否能解析 — SKILL.md 的 Related frameworks 要求引用 animation-principles 与 motion-art-direction,但这两个 skill 属 iart-ai/motion-design-skills(另一仓库、另一 pack)。只安装 freelance-motion-skills 时引用悬空(文档既未标注需另装,也未内联最小词汇表),实际使用需同时装 motion pack。
- [unlocatable] 无障碍与光敏阈值等条款是否有出处 — 「≤3 次闪光/秒」「聚焦指示不可被动画隐藏」等属通用可访问性实践(对应 WCAG 类准则),但 pin 仓库内未给标准编号或链接;作为文档声明记录,合规场景应自行对照当期 WCAG。
- [ok] 「输出是文档不是代码」是否与全文一致 — SKILL.md 在 When to use、常见错误表与交付 spec 三处均强调产出为 structured document;令牌表里的 cubic-bezier 是内容而非实现代码,与声明一致。
6结论
9ea95c6713578b29…