The open-source full-stack studio for Opus 5.5 motion video. Reverse engineering for any video. Code video with HTML: recreate, edit and render. BYOA + BYOK · Motion.md · Images, Video, Music & Voice.
TypeScript agent-skillsagentic-aiai-agentsai-videobyokclaude-codecodexdeepseek-harnessdsh-plugingenerative-ailocal-firstmcpmotionmotion-graphicsmultimodalopenmotionreverse-engineeringvideo-editingvideo-generationworkbuddy
<!doctype html><html lang="zh-CN"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1"><title>Figma Code Layers · motion.md</title><link rel="stylesheet" href="viewer/guide.css"><link rel="stylesheet" href="viewer/board.css"></head>
<body style="--paper:#161616;--brand-ink:#f6f6ef;--accent:#96d93c;--sample-font:Arial, sans-serif">
<header class="shell"><a class="wordmark" href="#">ııı <strong>motion</strong><span>.md</span></a><span class="shell-divider"></span><span class="shell-name">视频风格规范</span><nav><button class="tab active" data-tab="board">样式板</button><button class="tab" data-tab="source">motion.md</button><a href="motion.md" download>下载文档 ↗</a></nav></header>
<main id="board-view"><header class="intro"><div class="kicker">Figma <span>/</span> V276</div><div class="intro-line"><h1>Figma Code Layers</h1><button id="allPause" class="quiet">播放编排 ▷</button></div><div class="intro-copy"><p>代码生成的界面进入设计画布,经过协作与比较,再更新回同一个代码层。把实现和设计演成可往返的工作。</p></div></header>
<div class="overview"><section class="hero"><div class="tile-label">构图与编排 <span>可播放 · 可替换内容</span></div><figure class="demo" id="demo-sequence" data-demo="{"id": "sequence", "title": "整体编排", "src": "demos/sequence.html", "duration": 34.833333, "status": "authored", "description": "动作与构图示意", "initialTime": 7, "params": [{"key": "title", "label": "示例主文案", "type": "text", "value": "Bring code to the canvas", "maxLength": 60}, {"key": "accent", "label": "强调色", "type": "color", "value": "#96d93c"}], "presets": [{"label": "默认内容", "values": {"title": "Bring code to the canvas", "accent": "#96d93c"}}, {"label": "OpenDesign 改编", "values": {"title": "OpenDesign", "accent": "#7050da"}}]}"><div class="demo-heading"><span>整体编排</span><span class="status">规则示例</span></div><div class="demo-stage"><iframe loading="eager" sandbox="allow-scripts" title="整体编排" data-src="demos/sequence.html"></iframe></div><div class="demo-controls"><button class="play" type="button" disabled>播放</button><button class="reset" type="button" disabled aria-label="从头播放">↺</button><input class="seek" type="range" min="0" max="34.833333" step="0.0166667" value="0" aria-label="动画时间" disabled><output>0.00 / 34.83 秒</output><select class="speed" aria-label="播放速度"><option value="1">1×</option><option value="0.5">0.5×</option><option value="0.25">0.25×</option></select></div><div class="demo-params"></div><figcaption>动作与构图示意 <a href="demos/sequence.html" target="_blank" rel="noopener">独立打开 ↗</a><details class="demo-source"><summary>查看 HTML 源码</summary><pre><code><!doctype html><html lang="zh-CN"><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1"><title>Figma Code Layers · sequence</title><style>html,body{margin:0;width:100%;height:100%;overflow:hidden;background:#161616}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></code></pre></details></figcaption></figure></section><aside class="identity"><section class="type-sheet"><div class="tile-label">字形与层级 <span>字形示意</span></div><div class="type-brand">Figma</div><div class="type-sample">Bring code to the canvas</div><p>无衬线中粗主标题;细边框界面与小号功能文字</p><div class="type-baseline"></div></section><section class="palette"><div class="tile-label">配色 <span>点击复制色值</span></div><div class="swatches"><button class="swatch" data-color="#161616" style="--swatch:#161616" aria-label="复制色值 #161616"><span></span><code>#161616</code></button><button class="swatch" data-color="#f6f6ef" style="--swatch:#f6f6ef" aria-label="复制色值 #f6f6ef"><span></span><code>#F6F6EF</code></button><button class="swatch" data-color="#96d93c" style="--swatch:#96d93c" aria-label="复制色值 #96d93c"><span></span><code>#96D93C</code></button><button class="swatch" data-color="#8d56d7" style="--swatch:#8d56d7" aria-label="复制色值 #8d56d7"><span></span><code>#8D56D7</code></button><button class="swatch" data-color="#f56c3d" style="--swatch:#f56c3d" aria-label="复制色值 #f56c3d"><span></span><code>#F56C3D</code></button></div></section></aside></div>
<div class="roles"><span class="label">画面元素</span><span>代码层</span><span>设计画布</span><span>协作指针</span><span>版本变体</span><span>更新按钮</span></div>
<div class="board-heading"><div><span class="eyebrow">MOTION LANGUAGE</span><h2>动作与构图</h2></div><p>局部动作 · 构图规则</p></div><div class="rule-grid"><section class="rule has-demo" id="section-1"><div class="rule-label"><span>01</span><h2>代码层进入画布后保持身份</h2></div><figure class="demo" id="demo-clip-1" data-demo="{"id": "clip-1", "title": "代码层进入画布后保持身份", "src": "demos/clip-1.html", "duration": 9, "status": "authored", "description": "4–13 秒 · 动作示意", "initialTime": 0.6}"><div class="demo-heading"><span>代码层进入画布后保持身份</span><span class="status">规则示例</span></div><div class="demo-stage"><iframe loading="eager" sandbox="allow-scripts" title="代码层进入画布后保持身份" data-src="demos/clip-1.html"></iframe></div><div class="demo-controls"><button class="play" type="button" disabled>播放</button><button class="reset" type="button" disabled aria-label="从头播放">↺</button><input class="seek" type="range" min="0" max="9" step="0.0166667" value="0" aria-label="动画时间" disabled><output>0.00 / 9.00 秒</output><select class="speed" aria-label="播放速度"><option value="1">1×</option><option value="0.5">0.5×</option><option value="0.25">0.25×</option></select></div><div class="demo-params"></div><figcaption>4–13 秒 · 动作示意 <a href="demos/clip-1.html" target="_blank" rel="noopener">独立打开 ↗</a><details class="demo-source"><summary>查看 HTML 源码</summary><pre><code><!doctype html><html lang="zh-CN"><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1"><title>Figma Code Layers · sequence</title><style>html,body{margin:0;width:100%;height:100%;overflow:hidden;background:#161616}canvas{display:block;width:100%;height:100%;object-fit:contain}</style><body data-mode="clip" data-start="4" data-end="13"><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></code></pre></details></figcaption></figure><div class="rule-copy">
<p>输入之后让代码生成的界面成为可选择对象,与其他设计变体并排。标题、边框或图层名称持续可见,更新时不要换成一张没有来路的新画面。</p>
</div></section><section class="rule text-only" id="section-2"><div class="rule-label"><span>02</span><h2>先比较变体,再更新选中结果</h2></div><div class="rule-copy">
<p>协作指针进入后展开多帧探索,选择一个结果,再执行更新。更新完成后展示多场景应用,说明这次变化已进入同一套产品。</p>
</div></section><section class="rule text-only" id="section-3"><div class="rule-label"><span>03</span><h2>工具框架轻,选择反馈清楚</h2></div><div class="rule-copy">
<p>深底外层承接浅色画布,无衬线标题与细界面文字分层。绿紫橙可以服务不同变体,但选中边框保持同一种视觉语言;屏幕并置时统一基线和间距。</p>
</div></section><section class="rule text-only" id="section-4"><div class="rule-label"><span>04</span><h2>迁移到其他原型流程</h2></div><div class="rule-copy">
<p>更换代码入口、画布工具和产品内容。保留“导入实现→画布比较→选择→更新实现”的闭环,指针和更新动作始终落在具体对象上。</p>
</div></section></div>
<section class="timeline-sheet" id="timing"><div class="board-heading"><div><span class="eyebrow">SEQUENCE</span><h2>段落与节奏</h2></div><p>点击段落,定位到上方编排示意。</p></div><div class="beats"><button class="beat" data-time="0.0"><span>0.00<small>s</small></span><b>主张</b></button><button class="beat" data-time="4.0"><span>4.00<small>s</small></span><b>MCP 输入</b></button><button class="beat" data-time="7.0"><span>7.00<small>s</small></span><b>代码层进入</b></button><button class="beat" data-time="10.0"><span>10.00<small>s</small></span><b>协作指针</b></button><button class="beat" data-time="13.0"><span>13.00<small>s</small></span><b>多帧探索</b></button><button class="beat" data-time="18.0"><span>18.00<small>s</small></span><b>选择结果</b></button><button class="beat" data-time="22.0"><span>22.00<small>s</small></span><b>更新代码层</b></button><button class="beat" data-time="27.0"><span>27.00<small>s</small></span><b>多场景结果</b></button><button class="beat" data-time="31.0"><span>31.00<small>s</small></span><b>总结</b></button><button class="beat" data-time="33.0"><span>33.00<small>s</small></span><b>品牌</b></button></div><div class="filmstrip"><figure><img src="assets/reference-1.jpg" alt="0.00 秒的构图参考" loading="lazy"><figcaption>0.00s</figcaption></figure><figure><img src="assets/reference-2.jpg" alt="7.00 秒的构图参考" loading="lazy"><figcaption>7.00s</figcaption></figure><figure><img src="assets/reference-3.jpg" alt="13.00 秒的构图参考" loading="lazy"><figcaption>13.00s</figcaption></figure><figure><img src="assets/reference-4.jpg" alt="18.00 秒的构图参考" loading="lazy"><figcaption>18.00s</figcaption></figure><figure><img src="https://r.open-design.ai/files/4912812d14b4582fc04e46c19550a1341db4c6990bd2cf9cc39e66085e9ad21e" alt="27.00 秒的构图参考" loading="lazy"><figcaption>27.00s</figcaption></figure><figure><img src="assets/reference-6.jpg" alt="33.00 秒的构图参考" loading="lazy"><figcaption>33.00s</figcaption></figure></div><p class="tiny">画面参考 · 离散静帧</p></section>
<section class="production"><div><span class="eyebrow">KEEP THE RELATIONSHIPS</span><h2>制作其他主题</h2>
<ul><li>可迁移原型工具;保留代码↔设计的迭代关系。</li></ul>
</div><div class="production-rules"><h3>制作约束</h3>
<p>代码层 / 设计画布 / 协作指针 / 版本变体 / 更新按钮</p>
<ul><li>代码生成的界面作为画布对象,与设计变体并置比较;更新后仍是同一代码层。</li><li>多人光标先出现,再对局部结果操作。</li></ul>
</div></section>
<footer>
<p><a href="style.json">视觉与对象</a> · <a href="timeline.json">段落时序</a> · <a href="tracks.json">位置数据</a> · <a href="manifest.json">文件清单</a></p>
<p>此规范根据参考视频整理。HTML 为可编辑的编排示例;具体数据的来源、精度与有效区间随文件标注。</p><span>Figma / MOTION.MD</span></footer></main>
<section id="source-view" hidden><pre># Figma Code Layers
代码生成的界面进入设计画布,经过协作与比较,再更新回同一个代码层。把实现和设计演成可往返的工作。
```motion-demo
{
"id": "sequence",
"title": "整体编排",
"src": "demos/sequence.html",
"duration": 34.833333,
"status": "authored",
"description": "动作与构图示意",
"initialTime": 7,
"params": [
{
"key": "title",
"label": "示例主文案",
"type": "text",
"value": "Bring code to the canvas",
"maxLength": 60
},
{
"key": "accent",
"label": "强调色",
"type": "color",
"value": "#96d93c"
}
],
"presets": [
{
"label": "默认内容",
"values": {
"title": "Bring code to the canvas",
"accent": "#96d93c"
}
},
{
"label": "OpenDesign 改编",
"values": {
"title": "OpenDesign",
"accent": "#7050da"
}
}
]
}
```
## 代码层进入画布后保持身份
输入之后让代码生成的界面成为可选择对象,与其他设计变体并排。标题、边框或图层名称持续可见,更新时不要换成一张没有来路的新画面。
```motion-demo
{
"id": "clip-1",
"title": "代码层进入画布后保持身份",
"src": "demos/clip-1.html",
"duration": 9,
"status": "authored",
"description": "4–13 秒 · 动作示意",
"initialTime": 0.6
}
```
## 先比较变体,再更新选中结果
协作指针进入后展开多帧探索,选择一个结果,再执行更新。更新完成后展示多场景应用,说明这次变化已进入同一套产品。
| 时间 | 段落 |
|---|---|
| 0.00–4.00s | 主张 |
| 4.00–7.00s | MCP 输入 |
| 7.00–10.00s | 代码层进入 |
| 10.00–13.00s | 协作指针 |
| 13.00–18.00s | 多帧探索 |
| 18.00–22.00s | 选择结果 |
| 22.00–27.00s | 更新代码层 |
| 27.00–31.00s | 多场景结果 |
| 31.00–33.00s | 总结 |
| 33.00–34.83s | 品牌 |
## 工具框架轻,选择反馈清楚
深底外层承接浅色画布,无衬线标题与细界面文字分层。绿紫橙可以服务不同变体,但选中边框保持同一种视觉语言;屏幕并置时统一基线和间距。
## 迁移到其他原型流程
更换代码入口、画布工具和产品内容。保留“导入实现→画布比较→选择→更新实现”的闭环,指针和更新动作始终落在具体对象上。
## 配色与字形
无衬线中粗主标题;细边框界面与小号功能文字。
#161616 · #f6f6ef · #96d93c · #8d56d7 · #f56c3d
## 元素与制作规则
代码层 / 设计画布 / 协作指针 / 版本变体 / 更新按钮
- 代码生成的界面作为画布对象,与设计变体并置比较;更新后仍是同一代码层。
- 多人光标先出现,再对局部结果操作。
## 内容替换
- 可迁移原型工具;保留代码↔设计的迭代关系。
## 制作参数
[视觉与对象](style.json) · [段落时序](timeline.json) · [位置数据](tracks.json) · [文件清单](manifest.json)
此规范根据参考视频整理。HTML 为可编辑的编排示例;具体数据的来源、精度与有效区间随文件标注。
```motion-board
{
"version": 1,
"brand": "Figma",
"id": "V276",
"palette": [
"#161616",
"#f6f6ef",
"#96d93c",
"#8d56d7",
"#f56c3d"
],
"typography": "无衬线中粗主标题;细边框界面与小号功能文字",
"sample": "Bring code to the canvas",
"objects": [
"代码层",
"设计画布",
"协作指针",
"版本变体",
"更新按钮"
],
"frames": [
{
"path": "assets/reference-1.jpg",
"timeSeconds": 0.0,
"frameId": "K0001",
"role": "reference-evidence",
"status": "measured"
},
{
"path": "assets/reference-2.jpg",
"timeSeconds": 7.0,
"frameId": "K0024",
"role": "reference-evidence",
"status": "measured"
},
{
"path": "assets/reference-3.jpg",
"timeSeconds": 13.0,
"frameId": "K0047",
"role": "reference-evidence",
"status": "measured"
},
{
"path": "assets/reference-4.jpg",
"timeSeconds": 18.0,
"frameId": "K0067",
"role": "reference-evidence",
"status": "measured"
},
{
"path": "https://r.open-design.ai/files/4912812d14b4582fc04e46c19550a1341db4c6990bd2cf9cc39e66085e9ad21e",
"timeSeconds": 27.0,
"frameId": "K0099",
"role": "reference-evidence",
"status": "measured"
},
{
"path": "assets/reference-6.jpg",
"timeSeconds": 33.0,
"frameId": "K0120",
"role": "reference-evidence",
"status": "measured"
}
],
"stages": [
{
"start": 0,
"label": "主张",
"end": 4,
"status": "inferred",
"basis": "Representative-frame review; approximate boundaries"
},
{
"start": 4,
"label": "MCP 输入",
"end": 7,
"status": "inferred",
"basis": "Representative-frame review; approximate boundaries"
},
{
"start": 7,
"label": "代码层进入",
"end": 10,
"status": "inferred",
"basis": "Representative-frame review; approximate boundaries"
},
{
"start": 10,
"label": "协作指针",
"end": 13,
"status": "inferred",
"basis": "Representative-frame review; approximate boundaries"
},
{
"start": 13,
"label": "多帧探索",
"end": 18,
"status": "inferred",
"basis": "Representative-frame review; approximate boundaries"
},
{
"start": 18,
"label": "选择结果",
"end": 22,
"status": "inferred",
"basis": "Representative-frame review; approximate boundaries"
},
{
"start": 22,
"label": "更新代码层",
"end": 27,
"status": "inferred",
"basis": "Representative-frame review; approximate boundaries"
},
{
"start": 27,
"label": "多场景结果",
"end": 31,
"status": "inferred",
"basis": "Representative-frame review; approximate boundaries"
},
{
"start": 31,
"label": "总结",
"end": 33,
"status": "inferred",
"basis": "Representative-frame review; approximate boundaries"
},
{
"start": 33,
"label": "品牌",
"end": 34.833333,
"status": "inferred",
"basis": "Representative-frame review; approximate boundaries"
}
],
"duration": 34.833333,
"fontFamily": "Arial, sans-serif"
}
```
</pre></section><div class="toast" role="status" aria-live="polite"></div><script src="viewer/guide.js"></script><script src="viewer/board.js"></script></body></html>