Prompt Then Conditions
A request line rises in whole and holds 1.0 s, then three smaller conditions slide in from the left 0.5 s apart while the whole group re-centres on every addition. For showing a one-line task with a few requirements in a launch film.
Motion6s1920×1080 · 30fps
0s / 5.5sFrame 0
Copy it exactly
用 `/hyperframes` 做一条 1920×1080、30 fps、5.5 秒的动效:深色底上先整句落下一句需求,停稳后三条条件逐条补在下面,整组每补一条都重新垂直居中。
1. 画面:底色 `#0E0E10`,需求整句字色 `#F4F4F2`,条件行字色 `#8A8A8E`,行首短竖线颜色 `#F2B544`。纯色背景,没有任何其他元素。字体用本地 `@font-face`:西文 IBM Plex Sans,中文 Noto Sans SC。
2. 字号:需求整句 120px,字重 600,字距 -0.01em,行高 150px;条件行 36px,字重 400,行高 52px。整句按长度缩:估算宽度 em = 中文字和全角标点每个 1 + 英文字母每个 0.56 + 空格每个 0.25,字号 = min(120, floor(1440 / em)),行高不变。
3. 版式:左边距 240px、左对齐。整组竖向(相对整组顶端):整句 0–150,间距 56,条件行 206–258、278–330、350–402(行高 52,行距 20)。整组最终高 402,容器 `top` = 339。条件行最左是 2px 宽、36px 高的直角短竖线,与文字相隔 20px。
4. 整句入场:放进 150px 高、`overflow: hidden` 的遮罩框里,从框的下沿升到原位,0.5 秒,`power2.out`,0.30 秒开始,0.80 秒落定。0.30 秒之前画面只有底色,整句不能提前露出。落定后停 1.0 秒。
5. 补条件:1.80、2.30、2.80 秒各补一条(间隔 0.5 秒)。每条从左 24px 滑到原位,同时不透明度 0 到 1,0.4 秒,`power2.out`。
6. 整组让位:每条开始滑入的同一时刻,整组一起上移,0.4 秒,`power2.out`。整组纵向偏移(向下为正)依次是 126、72、36、0px(补 0、1、2、3 条时),即每步上移 54、36、36px,保证整组始终垂直居中,已有内容不瞬间跳位。
7. 3.20 秒第三条落定,之后整组完全静止到 5.5 秒。
8. 禁止:逐字打字、勾选框、表情、编号、阴影、渐变、光晕、小标签。
需要替换的地方(在 `index.html` 里 `id="conditions"` 的挂载元素上写 `data-variable-values='{"prompt":"Make a 30-second launch film","cond1":"Vertical 9:16","cond2":"Chinese and English captions","cond3":"End on the URL"}'` 传入;换成别的汉字后要重新生成字体子集,否则缺字):
- 四行文案 `prompt`、`cond1`、`cond2`、`cond3`(默认「给新品做一支 30 秒发布片」「竖版 9:16」「中英双字幕」「结尾停在网址」)。
- 颜色:`bg`、`ink`、`muted`、`accent`。
- 字号上限 `fontSize`(120)。
- 时间:`firstAt`(0.3)、`promptDuration`(0.5)、`hold`(1.0)、`gap`(0.5)。
- 动作:`slide`(24)、`shiftDuration`(0.4)。
- 不要加产品界面和其他文字。Learn the technique
需求整句先从遮罩下沿升入(0.5 秒,`power2.out`)并停 1.0 秒,再每隔 0.5 秒从左 24px 补一条小两档的次要色条件;每补一条,整组在同样的 0.4 秒(`power2.out`)里上移新增高度的一半,始终垂直居中,最后静止 2.3 秒。
MCP
get_video({ "id": "motion-text-prompt-then-conditions" })Beats
| Time | Purpose | Visual | Camera | Transition | On-screen text |
|---|---|---|---|---|---|
| 0–1.8s | Land the whole request and let it rest | Ground only until 0.30 s; the line rises from the mask edge, lands at 0.80 s, then rests 1.0 s | static | — | Make a 30-second launch film |
| 1.8–2.3s | Add the first condition | Condition one slides in 24 px from the left; the group moves up 54 px to stay centred | static | — | Vertical 9:16 |
| 2.3–2.8s | Add the second condition | Condition two slides in; the group moves up 36 px | static | — | Chinese and English captions |
| 2.8–3.2s | Add the third condition | Condition three slides in; the group moves up 36 px and lands at 3.20 s | static | — | End on the URL |
| 3.2–5.5s | Let the viewer read the finished brief | All four lines stay still for 2.3 s | static | — | — |
Parameters
| Parameter | Default | Range | Kind |
|---|---|---|---|
Request line prompt | 给新品做一支 30 秒发布片 | — | Content |
Condition 1 cond1 | 竖版 9:16 | — | Content |
Condition 2 cond2 | 中英双字幕 | — | Content |
Condition 3 cond3 | 结尾停在网址 | — | Content |
Background bg | #0E0E10 | — | Look |
Request text color ink | #F4F4F2 | — | Look |
Condition text color muted | #8A8A8E | — | Look |
Short bar color accent | #F2B544 | — | Look |
Max request font size fontSize | 120px | 64 – 160px | Look |
Request start firstAt | 0.3s | 0 – 1s | Timing |
Request entrance duration promptDuration | 0.5s | 0.3 – 1s | Motion |
Pause after the request lands hold | 1s | 0.5 – 2s | Timing |
Interval between conditions gap | 0.5s | 0.4 – 1s | Timing |
Condition slide distance slide | 24px | 8 – 64px | Motion |
Slide and shift duration shiftDuration | 0.4s | 0.2 – 0.8s | Motion |
Good for
- Showing a one-line task with a few extra requirements
- A request within about 12 Chinese characters or 6 English words, conditions of 3 to 8 characters each
- AI-product stories where the user adds constraints after the first line
Not for
- Typed-in-character input scenes
- Lists longer than three lines
- Conditions that need checkboxes, numbers or status changes