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>Notion as code — workspaces in TypeScript · motion.md</title><link rel="stylesheet" href="viewer/guide.css"><link rel="stylesheet" href="viewer/board.css"></head>
<body style="--paper:#ffffff;--brand-ink:#191919;--accent:#2f91cb;--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">Notion <span>/</span> V303</div><div class="intro-line"><h1>Notion as code — workspaces in TypeScript</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": 51.06684, "status": "authored", "description": "动作与构图示意", "initialTime": 17, "params": [{"key": "title", "label": "示例主文案", "type": "text", "value": "Notion as code", "maxLength": 60}, {"key": "accent", "label": "强调色", "type": "color", "value": "#2f91cb"}], "presets": [{"label": "默认内容", "values": {"title": "Notion as code", "accent": "#2f91cb"}}, {"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="51.06684" step="0.0166667" value="0" aria-label="动画时间" disabled><output>0.00 / 51.07 秒</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>Notion as code — workspaces in TypeScript · sequence</title><style>html,body{margin:0;width:100%;height:100%;overflow:hidden;background:#ffffff}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">Notion</div><div class="type-sample">Notion as code</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="#ffffff" style="--swatch:#ffffff" aria-label="复制色值 #ffffff"><span></span><code>#FFFFFF</code></button><button class="swatch" data-color="#191919" style="--swatch:#191919" aria-label="复制色值 #191919"><span></span><code>#191919</code></button><button class="swatch" data-color="#2f91cb" style="--swatch:#2f91cb" aria-label="复制色值 #2f91cb"><span></span><code>#2F91CB</code></button><button class="swatch" data-color="#f2e1bb" style="--swatch:#f2e1bb" aria-label="复制色值 #f2e1bb"><span></span><code>#F2E1BB</code></button><button class="swatch" data-color="#aea0ce" style="--swatch:#aea0ce" aria-label="复制色值 #aea0ce"><span></span><code>#AEA0CE</code></button></div></section></aside></div>
<div class="roles"><span class="label">画面元素</span><span>终端窗口</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": 26, "status": "authored", "description": "4–30 秒 · 动作示意", "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="26" step="0.0166667" value="0" aria-label="动画时间" disabled><output>0.00 / 26.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–30 秒 · 动作示意 <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>Notion as code — workspaces in TypeScript · sequence</title><style>html,body{margin:0;width:100%;height:100%;overflow:hidden;background:#ffffff}canvas{display:block;width:100%;height:100%;object-fit:contain}</style><body data-mode="clip" data-start="4" data-end="30"><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>终端输入</b></button><button class="beat" data-time="17.0"><span>17.00<small>s</small></span><b>代理执行</b></button><button class="beat" data-time="23.0"><span>23.00<small>s</small></span><b>计划与约束</b></button><button class="beat" data-time="30.0"><span>30.00<small>s</small></span><b>代码输出</b></button><button class="beat" data-time="36.0"><span>36.00<small>s</small></span><b>部署确认</b></button><button class="beat" data-time="40.0"><span>40.00<small>s</small></span><b>工作区成果</b></button><button class="beat" data-time="48.0"><span>48.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="4.00 秒的构图参考" loading="lazy"><figcaption>4.00s</figcaption></figure><figure><img src="assets/reference-3.jpg" alt="23.00 秒的构图参考" loading="lazy"><figcaption>23.00s</figcaption></figure><figure><img src="assets/reference-4.jpg" alt="30.00 秒的构图参考" loading="lazy"><figcaption>30.00s</figcaption></figure><figure><img src="assets/reference-5.jpg" alt="40.00 秒的构图参考" loading="lazy"><figcaption>40.00s</figcaption></figure><figure><img src="assets/reference-6.jpg" alt="48.00 秒的构图参考" loading="lazy"><figcaption>48.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>Notion / MOTION.MD</span></footer></main>
<section id="source-view" hidden><pre># Notion as code — workspaces in TypeScript
从终端需求走到可用工作区。代码是中间产物,最后必须让观众看到它生成的实际页面。
```motion-demo
{
"id": "sequence",
"title": "整体编排",
"src": "demos/sequence.html",
"duration": 51.06684,
"status": "authored",
"description": "动作与构图示意",
"initialTime": 17,
"params": [
{
"key": "title",
"label": "示例主文案",
"type": "text",
"value": "Notion as code",
"maxLength": 60
},
{
"key": "accent",
"label": "强调色",
"type": "color",
"value": "#2f91cb"
}
],
"presets": [
{
"label": "默认内容",
"values": {
"title": "Notion as code",
"accent": "#2f91cb"
}
},
{
"label": "OpenDesign 改编",
"values": {
"title": "OpenDesign",
"accent": "#7050da"
}
}
]
}
```
## 先输入目标,再展示执行
发布标题后进入终端,用一段简洁需求说明要创建什么。文字按输入节奏出现,计划与约束随后展开,执行日志不要抢在需求之前。
```motion-demo
{
"id": "clip-1",
"title": "先输入目标,再展示执行",
"src": "demos/clip-1.html",
"duration": 26,
"status": "authored",
"description": "4–30 秒 · 动作示意",
"initialTime": 0.6
}
```
## 代码后面接部署与工作区
代码输出之后给一次明确的部署确认,再切到浅色工作区成果。工作区标题和结构要对应开头请求,让黑底命令变成可以直接理解的结果。
| 时间 | 段落 |
|---|---|
| 0.00–4.00s | 发布标题 |
| 4.00–17.00s | 终端输入 |
| 17.00–23.00s | 代理执行 |
| 23.00–30.00s | 计划与约束 |
| 30.00–36.00s | 代码输出 |
| 36.00–40.00s | 部署确认 |
| 40.00–48.00s | 工作区成果 |
| 48.00–51.07s | 品牌 |
## 黑白两种工作面承担阶段变化
终端用深底与等宽字,结果用白底和无衬线界面。标题采用中粗无衬线,外围淡色背景保持克制;指针、日志重点和完成状态共用一条强调色。
## 围绕一种可见结果改写
更换生成目标时,一起替换提示词、计划、关键代码和最终页面。代码镜头只保留足以解释结构的内容,把片长留给结果展示。
## 配色与字形
无衬线中粗主标题;细边框界面与小号功能文字。
#ffffff · #191919 · #2f91cb · #f2e1bb · #aea0ce
## 元素与制作规则
终端窗口 / 提示词 / 计划清单 / 代码 / 部署命令 / 工作区
- 先写需求再展示执行与代码,部署确认后切到真实工作区成果。
- 终端黑底与结果白底形成阶段区分。
## 内容替换
- 可换生成目标;保留命令→生成→部署→可见成果。
## 制作参数
[视觉与对象](style.json) · [段落时序](timeline.json) · [位置数据](tracks.json) · [文件清单](manifest.json)
此规范根据参考视频整理。HTML 为可编辑的编排示例;具体数据的来源、精度与有效区间随文件标注。
```motion-board
{
"version": 1,
"brand": "Notion",
"id": "V303",
"palette": [
"#ffffff",
"#191919",
"#2f91cb",
"#f2e1bb",
"#aea0ce"
],
"typography": "无衬线中粗主标题;细边框界面与小号功能文字",
"sample": "Notion as code",
"objects": [
"终端窗口",
"提示词",
"计划清单",
"代码",
"部署命令",
"工作区"
],
"frames": [
{
"path": "assets/reference-1.jpg",
"timeSeconds": 0.0,
"frameId": "K0001",
"role": "reference-evidence",
"status": "measured"
},
{
"path": "assets/reference-2.jpg",
"timeSeconds": 4.000013598781549,
"frameId": "K0012",
"role": "reference-evidence",
"status": "measured"
},
{
"path": "assets/reference-3.jpg",
"timeSeconds": 23.000078192993907,
"frameId": "K0044",
"role": "reference-evidence",
"status": "measured"
},
{
"path": "assets/reference-4.jpg",
"timeSeconds": 30.00010199086162,
"frameId": "K0059",
"role": "reference-evidence",
"status": "measured"
},
{
"path": "assets/reference-5.jpg",
"timeSeconds": 40.00013598781549,
"frameId": "K0085",
"role": "reference-evidence",
"status": "measured"
},
{
"path": "assets/reference-6.jpg",
"timeSeconds": 48.00016318537859,
"frameId": "K0100",
"role": "reference-evidence",
"status": "measured"
}
],
"stages": [
{
"start": 0,
"label": "发布标题",
"end": 4,
"status": "inferred",
"basis": "Representative-frame review; approximate boundaries"
},
{
"start": 4,
"label": "终端输入",
"end": 17,
"status": "inferred",
"basis": "Representative-frame review; approximate boundaries"
},
{
"start": 17,
"label": "代理执行",
"end": 23,
"status": "inferred",
"basis": "Representative-frame review; approximate boundaries"
},
{
"start": 23,
"label": "计划与约束",
"end": 30,
"status": "inferred",
"basis": "Representative-frame review; approximate boundaries"
},
{
"start": 30,
"label": "代码输出",
"end": 36,
"status": "inferred",
"basis": "Representative-frame review; approximate boundaries"
},
{
"start": 36,
"label": "部署确认",
"end": 40,
"status": "inferred",
"basis": "Representative-frame review; approximate boundaries"
},
{
"start": 40,
"label": "工作区成果",
"end": 48,
"status": "inferred",
"basis": "Representative-frame review; approximate boundaries"
},
{
"start": 48,
"label": "品牌",
"end": 51.06684,
"status": "inferred",
"basis": "Representative-frame review; approximate boundaries"
}
],
"duration": 51.06684,
"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>