Skip to content

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.

20.8 KB
Raw Blame
<!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="{&quot;id&quot;: &quot;sequence&quot;, &quot;title&quot;: &quot;整体编排&quot;, &quot;src&quot;: &quot;demos/sequence.html&quot;, &quot;duration&quot;: 34.833333, &quot;status&quot;: &quot;authored&quot;, &quot;description&quot;: &quot;动作与构图示意&quot;, &quot;initialTime&quot;: 7, &quot;params&quot;: [{&quot;key&quot;: &quot;title&quot;, &quot;label&quot;: &quot;示例主文案&quot;, &quot;type&quot;: &quot;text&quot;, &quot;value&quot;: &quot;Bring code to the canvas&quot;, &quot;maxLength&quot;: 60}, {&quot;key&quot;: &quot;accent&quot;, &quot;label&quot;: &quot;强调色&quot;, &quot;type&quot;: &quot;color&quot;, &quot;value&quot;: &quot;#96d93c&quot;}], &quot;presets&quot;: [{&quot;label&quot;: &quot;默认内容&quot;, &quot;values&quot;: {&quot;title&quot;: &quot;Bring code to the canvas&quot;, &quot;accent&quot;: &quot;#96d93c&quot;}}, {&quot;label&quot;: &quot;OpenDesign 改编&quot;, &quot;values&quot;: {&quot;title&quot;: &quot;OpenDesign&quot;, &quot;accent&quot;: &quot;#7050da&quot;}}]}"><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>&lt;!doctype html&gt;&lt;html lang=&quot;zh-CN&quot;&gt;&lt;meta charset=&quot;utf-8&quot;&gt;&lt;meta name=&quot;viewport&quot; content=&quot;width=device-width,initial-scale=1&quot;&gt;&lt;title&gt;Figma Code Layers · sequence&lt;/title&gt;&lt;style&gt;html,body{margin:0;width:100%;height:100%;overflow:hidden;background:#161616}canvas{display:block;width:100%;height:100%;object-fit:contain}&lt;/style&gt;&lt;body data-mode=&quot;sequence&quot;&gt;&lt;canvas width=&quot;1000&quot; height=&quot;600&quot;&gt;&lt;/canvas&gt;&lt;script src=&quot;data.js&quot;&gt;&lt;/script&gt;&lt;script src=&quot;common.js&quot;&gt;&lt;/script&gt;&lt;script src=&quot;scene.js&quot;&gt;&lt;/script&gt;&lt;script src=&quot;bridge.js&quot;&gt;&lt;/script&gt;&lt;/body&gt;&lt;/html&gt;</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="{&quot;id&quot;: &quot;clip-1&quot;, &quot;title&quot;: &quot;代码层进入画布后保持身份&quot;, &quot;src&quot;: &quot;demos/clip-1.html&quot;, &quot;duration&quot;: 9, &quot;status&quot;: &quot;authored&quot;, &quot;description&quot;: &quot;4–13 秒 · 动作示意&quot;, &quot;initialTime&quot;: 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>&lt;!doctype html&gt;&lt;html lang=&quot;zh-CN&quot;&gt;&lt;meta charset=&quot;utf-8&quot;&gt;&lt;meta name=&quot;viewport&quot; content=&quot;width=device-width,initial-scale=1&quot;&gt;&lt;title&gt;Figma Code Layers · sequence&lt;/title&gt;&lt;style&gt;html,body{margin:0;width:100%;height:100%;overflow:hidden;background:#161616}canvas{display:block;width:100%;height:100%;object-fit:contain}&lt;/style&gt;&lt;body data-mode=&quot;clip&quot; data-start=&quot;4&quot; data-end=&quot;13&quot;&gt;&lt;canvas width=&quot;1000&quot; height=&quot;600&quot;&gt;&lt;/canvas&gt;&lt;script src=&quot;data.js&quot;&gt;&lt;/script&gt;&lt;script src=&quot;common.js&quot;&gt;&lt;/script&gt;&lt;script src=&quot;scene.js&quot;&gt;&lt;/script&gt;&lt;script src=&quot;bridge.js&quot;&gt;&lt;/script&gt;&lt;/body&gt;&lt;/html&gt;</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
{
  &quot;id&quot;: &quot;sequence&quot;,
  &quot;title&quot;: &quot;整体编排&quot;,
  &quot;src&quot;: &quot;demos/sequence.html&quot;,
  &quot;duration&quot;: 34.833333,
  &quot;status&quot;: &quot;authored&quot;,
  &quot;description&quot;: &quot;动作与构图示意&quot;,
  &quot;initialTime&quot;: 7,
  &quot;params&quot;: [
    {
      &quot;key&quot;: &quot;title&quot;,
      &quot;label&quot;: &quot;示例主文案&quot;,
      &quot;type&quot;: &quot;text&quot;,
      &quot;value&quot;: &quot;Bring code to the canvas&quot;,
      &quot;maxLength&quot;: 60
    },
    {
      &quot;key&quot;: &quot;accent&quot;,
      &quot;label&quot;: &quot;强调色&quot;,
      &quot;type&quot;: &quot;color&quot;,
      &quot;value&quot;: &quot;#96d93c&quot;
    }
  ],
  &quot;presets&quot;: [
    {
      &quot;label&quot;: &quot;默认内容&quot;,
      &quot;values&quot;: {
        &quot;title&quot;: &quot;Bring code to the canvas&quot;,
        &quot;accent&quot;: &quot;#96d93c&quot;
      }
    },
    {
      &quot;label&quot;: &quot;OpenDesign 改编&quot;,
      &quot;values&quot;: {
        &quot;title&quot;: &quot;OpenDesign&quot;,
        &quot;accent&quot;: &quot;#7050da&quot;
      }
    }
  ]
}
```

## 代码层进入画布后保持身份

输入之后让代码生成的界面成为可选择对象,与其他设计变体并排。标题、边框或图层名称持续可见,更新时不要换成一张没有来路的新画面。

```motion-demo
{
  &quot;id&quot;: &quot;clip-1&quot;,
  &quot;title&quot;: &quot;代码层进入画布后保持身份&quot;,
  &quot;src&quot;: &quot;demos/clip-1.html&quot;,
  &quot;duration&quot;: 9,
  &quot;status&quot;: &quot;authored&quot;,
  &quot;description&quot;: &quot;4–13 秒 · 动作示意&quot;,
  &quot;initialTime&quot;: 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
{
  &quot;version&quot;: 1,
  &quot;brand&quot;: &quot;Figma&quot;,
  &quot;id&quot;: &quot;V276&quot;,
  &quot;palette&quot;: [
    &quot;#161616&quot;,
    &quot;#f6f6ef&quot;,
    &quot;#96d93c&quot;,
    &quot;#8d56d7&quot;,
    &quot;#f56c3d&quot;
  ],
  &quot;typography&quot;: &quot;无衬线中粗主标题;细边框界面与小号功能文字&quot;,
  &quot;sample&quot;: &quot;Bring code to the canvas&quot;,
  &quot;objects&quot;: [
    &quot;代码层&quot;,
    &quot;设计画布&quot;,
    &quot;协作指针&quot;,
    &quot;版本变体&quot;,
    &quot;更新按钮&quot;
  ],
  &quot;frames&quot;: [
    {
      &quot;path&quot;: &quot;assets/reference-1.jpg&quot;,
      &quot;timeSeconds&quot;: 0.0,
      &quot;frameId&quot;: &quot;K0001&quot;,
      &quot;role&quot;: &quot;reference-evidence&quot;,
      &quot;status&quot;: &quot;measured&quot;
    },
    {
      &quot;path&quot;: &quot;assets/reference-2.jpg&quot;,
      &quot;timeSeconds&quot;: 7.0,
      &quot;frameId&quot;: &quot;K0024&quot;,
      &quot;role&quot;: &quot;reference-evidence&quot;,
      &quot;status&quot;: &quot;measured&quot;
    },
    {
      &quot;path&quot;: &quot;assets/reference-3.jpg&quot;,
      &quot;timeSeconds&quot;: 13.0,
      &quot;frameId&quot;: &quot;K0047&quot;,
      &quot;role&quot;: &quot;reference-evidence&quot;,
      &quot;status&quot;: &quot;measured&quot;
    },
    {
      &quot;path&quot;: &quot;assets/reference-4.jpg&quot;,
      &quot;timeSeconds&quot;: 18.0,
      &quot;frameId&quot;: &quot;K0067&quot;,
      &quot;role&quot;: &quot;reference-evidence&quot;,
      &quot;status&quot;: &quot;measured&quot;
    },
    {
      &quot;path&quot;: &quot;https://r.open-design.ai/files/4912812d14b4582fc04e46c19550a1341db4c6990bd2cf9cc39e66085e9ad21e&quot;,
      &quot;timeSeconds&quot;: 27.0,
      &quot;frameId&quot;: &quot;K0099&quot;,
      &quot;role&quot;: &quot;reference-evidence&quot;,
      &quot;status&quot;: &quot;measured&quot;
    },
    {
      &quot;path&quot;: &quot;assets/reference-6.jpg&quot;,
      &quot;timeSeconds&quot;: 33.0,
      &quot;frameId&quot;: &quot;K0120&quot;,
      &quot;role&quot;: &quot;reference-evidence&quot;,
      &quot;status&quot;: &quot;measured&quot;
    }
  ],
  &quot;stages&quot;: [
    {
      &quot;start&quot;: 0,
      &quot;label&quot;: &quot;主张&quot;,
      &quot;end&quot;: 4,
      &quot;status&quot;: &quot;inferred&quot;,
      &quot;basis&quot;: &quot;Representative-frame review; approximate boundaries&quot;
    },
    {
      &quot;start&quot;: 4,
      &quot;label&quot;: &quot;MCP 输入&quot;,
      &quot;end&quot;: 7,
      &quot;status&quot;: &quot;inferred&quot;,
      &quot;basis&quot;: &quot;Representative-frame review; approximate boundaries&quot;
    },
    {
      &quot;start&quot;: 7,
      &quot;label&quot;: &quot;代码层进入&quot;,
      &quot;end&quot;: 10,
      &quot;status&quot;: &quot;inferred&quot;,
      &quot;basis&quot;: &quot;Representative-frame review; approximate boundaries&quot;
    },
    {
      &quot;start&quot;: 10,
      &quot;label&quot;: &quot;协作指针&quot;,
      &quot;end&quot;: 13,
      &quot;status&quot;: &quot;inferred&quot;,
      &quot;basis&quot;: &quot;Representative-frame review; approximate boundaries&quot;
    },
    {
      &quot;start&quot;: 13,
      &quot;label&quot;: &quot;多帧探索&quot;,
      &quot;end&quot;: 18,
      &quot;status&quot;: &quot;inferred&quot;,
      &quot;basis&quot;: &quot;Representative-frame review; approximate boundaries&quot;
    },
    {
      &quot;start&quot;: 18,
      &quot;label&quot;: &quot;选择结果&quot;,
      &quot;end&quot;: 22,
      &quot;status&quot;: &quot;inferred&quot;,
      &quot;basis&quot;: &quot;Representative-frame review; approximate boundaries&quot;
    },
    {
      &quot;start&quot;: 22,
      &quot;label&quot;: &quot;更新代码层&quot;,
      &quot;end&quot;: 27,
      &quot;status&quot;: &quot;inferred&quot;,
      &quot;basis&quot;: &quot;Representative-frame review; approximate boundaries&quot;
    },
    {
      &quot;start&quot;: 27,
      &quot;label&quot;: &quot;多场景结果&quot;,
      &quot;end&quot;: 31,
      &quot;status&quot;: &quot;inferred&quot;,
      &quot;basis&quot;: &quot;Representative-frame review; approximate boundaries&quot;
    },
    {
      &quot;start&quot;: 31,
      &quot;label&quot;: &quot;总结&quot;,
      &quot;end&quot;: 33,
      &quot;status&quot;: &quot;inferred&quot;,
      &quot;basis&quot;: &quot;Representative-frame review; approximate boundaries&quot;
    },
    {
      &quot;start&quot;: 33,
      &quot;label&quot;: &quot;品牌&quot;,
      &quot;end&quot;: 34.833333,
      &quot;status&quot;: &quot;inferred&quot;,
      &quot;basis&quot;: &quot;Representative-frame review; approximate boundaries&quot;
    }
  ],
  &quot;duration&quot;: 34.833333,
  &quot;fontFamily&quot;: &quot;Arial, sans-serif&quot;
}
```
</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>