Truck and Push
A sentence wider than the frame: the camera trucks across it while pushing in slightly, one ease for both, and stops on the final key word.
Motion5s1920×1080 · 30fps
0s / 4.5sFrame 0
Copy it exactly
> 给用户的 AI:用 `/hyperframes` 按下面的数字复刻,不要自己加动作。 做一个 1920×1080、30 fps、4.5 秒的 HyperFrames 动效:深绿底上一句比画面还宽的单行长句,镜头一边从左往右横移、一边轻轻推近,停在句尾的关键词上,关键词落在画面正中。 - 底色 `#0F1712`,字色 `#ECF2EE`,强调色 `#7FD99A`(只染最后的关键词),背景线 `#1F2B24`。 - 句子:中文「从一个想法,到一支能发出去的片子」,关键词「片子」;英文「From one idea to a film you can ship」,关键词「ship」。一行,不换行,字号 120px,字重 600,字距 0.02em,起点 x = 160,垂直居中 y = 540。中文用 Noto Serif SC,西文用 Instrument Sans,本地 `@font-face`。 - 背景:一个铺满画布的 div,用 CSS 渐变画细线网格,线宽 2px,格子 120px,起点 `background-position: 0 0`。没有粒子,没有光斑,没有暗角,没有辉光。 - 镜头:两条 tween,都从 0 秒开始、3.2 秒结束,缓动都是 `power2.inOut`,中途不停、不回弹: - 文字层:`x` 从 0 到「把关键词中心带到 x = 960」所需的距离(中文版 -1158.4px),同时 `scale` 1 → 1.15,缩放中心放在关键词中心;`force3D: false`。 - 背景层:横移文字层距离的 60%(中文版 695.04px),格子 120 → 126px(缩放中心为画面中心,终点 background-position 取整为 -743px -27px,停住时线都在整数像素上),做法是改 `background-size` 和 `background-position`,不要用比画布大的缩放层。 - 3.2–4.5 秒完全静止,不晃动,画面上除了这句话没有任何文字。 - 先横移再推近分成两段、背景粒子、停住后再晃动,都不要。 需要替换的地方: - 整句:`headline`;镜头停住的关键词:`keyWord`(必须是句子的最后一段) - 配色:`bg`、`ink`、`accentColor`、`lineColor` - 字号:`fontSize`(默认 120) - 推近力度:`pushScale`(默认 1.15);背景横移比例:`bgPanRatio`(默认 0.6) - 时长和缓动:`moveDuration`(默认 3.2 秒)、`moveEase`(默认 `power2.inOut`) 这些都是 `compositions/truck.html` 根元素上的变量,在 `index.html` 的 `#truck` 上用 `data-variable-values` 覆盖。背景格子推近倍率 `BG_END = 1.05`(格距 126px) 写在该文件的脚本常量里。
Learn the technique
横移和推近是同一个镜头动作:同一条 `power2.inOut`、同一刻开始同一刻结束(3.2 秒),推近只有 1.0 到 1.15;缩放中心放在最终要停住的那个词上,它自己就不会漂;背景层只横移文字层的 60%,错开的那 40% 就是纵深。
MCP
get_video({ "id": "motion-camera-truck-push" })Beats
| Time | Purpose | Visual | Camera | Transition | On-screen text |
|---|---|---|---|---|---|
| 0–3.2s | The camera sweeps the sentence and stops on the key word | Text layer trucks 1158.4 px and pushes 1.0 to 1.15, background trucks 60% of that, one power2.inOut, 3.2 s | truck-push | — | From one idea to a film you can ship |
| 3.2–4.5s | The key word sits dead center | Fully still, no tween | static | — | — |
Parameters
| Parameter | Default | Range | Kind |
|---|---|---|---|
Push end scale pushScale | 1.15 | 1.05 – 1.25 | Motion |
Background pan as a share of the text pan bgPanRatio | 0.6 | 0.3 – 0.9 | Motion |
Move duration moveDuration | 3.2s | 2.4 – 3.6s | Timing |
Shared ease moveEase | power2.inOut | — | Motion |
Font size fontSize | 120px | 96 – 144px | Look |
Good for
- One claim wider than the frame that should land on its last key word
- A restrained, slightly cinematic camera move
- Works for Chinese and English, one long line
Not for
- Multi-line or multi-block text
- Scenes where the title needs its own entrance