Hard-Edge Wipe
A hard accent-colored edge sweeps right to left and reveals the next scene behind it, while both scenes stay still; for a clean change between two lines.
Motion5s1920×1080 · 30fps
0s / 4.5sFrame 0
Copy it exactly
用 `/hyperframes` 做一个 1920×1080、30 fps、4.5 秒的硬边擦除转场。一个场景文件,不开运动模糊,不用任何图片或截图。 画面: 1. 第一幕整屏底 `#E8E6E1`,文案「手动拼每一帧」,字色 `#1C1C1A`,思源黑体(Noto Sans SC)加 Hanken Grotesk,120px、字重 700、字距 -0.02em、行高 156px,整屏 flex 容器、左右内边距 192px、垂直居中、左对齐。 2. 第二幕叠在第一幕上面,版式、字号、位置完全相同,只换文案「照着好参考做」、底色 `#1C1C1A` 和字色 `#E8E6E1`。第二幕用 `clip-path: inset(0 0 0 Npx)` 裁剪,起始 N = 1920 + 边宽 = 1932(整个被遮住)。 3. 一条边:宽 12px、高 1080px、强调色 `#2F5BFF`,直角实心,没有渐变、羽化、发光、拖影,用 x 平移定位。 动作: - 0.0–1.5 秒:完全静止,边在画外右侧(x = 1920)。 - 1.5–2.1 秒:用一个数值 tween,把 x 从 1920 走到 -12,0.6 秒,`power3.inOut`。每次更新把 x 取整,边平移到 x,第二幕的裁剪左边界设成 `x + 12`,所以边永远贴在第二幕左边缘。 - x 到 -11(边只剩 1px)时,把边和第一幕都设为 `visibility: hidden`,第二幕裁剪归零。 - 2.1–4.5 秒:完全静止,第二幕整屏。 - 两幕在擦除过程中不移动、不缩放、不淡入淡出。 需要替换的地方: - 文案:变量 `copyA`(中文「手动拼每一帧」,英文 `Stitch every frame by hand`)、`copyB`(中文「照着好参考做」,英文 `Build from a good reference`)。英文较长时会自动折成两行,仍然垂直居中。 - 颜色:`bg`(第一幕底色和第二幕字色)、`ink`(第一幕字色和第二幕底色)、`accentColor`(边的颜色)。 - 边宽 `edgeWidth`(默认 12px);时间和缓动 `wipeStart`(1.5)、`wipeDuration`(0.6)、`wipeEase`(`power3.inOut`)。 - 变量声明在场景根元素的 `data-composition-variables` 上,换值时在宿主上写 `data-variable-values`。 - 不是变量的:画布宽 1920(脚本里的 `W`)、整片时长 4.5 秒(`index.html` 的 `data-duration`)。 - 字体用本地 `@font-face` 指向 `assets/fonts/`,不要联网取字体。
Learn the technique
第二幕一直整屏躺在第一幕上面,用一个跟着边走的裁剪窗口一点点露出来:12px 强调色硬边在 0.6 秒内用 `power3.inOut` 从 x = 1920 扫到 x = -12,两幕版式相同、各自静止,只有这条边在动,没有发光和拖影。
MCP
get_video({ "id": "motion-transition-hard-wipe" })Beats
| Time | Purpose | Visual | Camera | Transition | On-screen text |
|---|---|---|---|---|---|
| 0–1.5s | Let the viewer read the first line | Dark text on a light ground, fully still, the edge waits off-canvas right | static | — | Stitch every frame by hand |
| 1.5–2.1s | Switch to the second line cleanly | A 12 px accent edge sweeps from x=1920 to x=-12 with power3.inOut, dark ground revealed to its right, both scenes still | static | hard-wipe | — |
| 2.1–4.5s | Let the viewer read the second line | Light text on a dark ground, full frame, fully still | static | — | Build from a good reference |
Parameters
| Parameter | Default | Range | Kind |
|---|---|---|---|
Edge width edgeWidth | 12px | 4 – 48px | Look |
Wipe start wipeStart | 1.5s | 0 – 2s | Timing |
Wipe duration wipeDuration | 0.6s | 0.3 – 1.5s | Timing |
Wipe ease wipeEase | power3.inOut | — | Motion |
First scene ground (second scene text) bg | #E8E6E1 | — | Look |
First scene text (second scene ground) ink | #1C1C1A | — | Look |
Edge color accentColor | #2F5BFF | — | Look |
First line copyA | 手动拼每一帧 | — | Content |
Second line copyB | 照着好参考做 | — | Content |
Good for
- Two lines that contrast (old way versus new way)
- A clean, unfussy scene change
- Two scenes with the same layout, only copy and ground color change
- Defaults to 4.5 s: first line holds 1.5 s, wipe 0.6 s, second line holds 2.4 s; for slower reading raise the duration and wipeStart together
Not for
- Diagonal, curved or glowing wipes
- Scenes that must move during the change
- A film whose only content is this one change