One Headline Reflowing Across Widths
A hairline frame narrows from 1440 to 390 while the headline genuinely rewraps, drops one size at the breakpoint, and ends beside the desktop version; explains responsive layout in one scene.
Motion6s1920×1080 · 30fpsLaunchFeatureTutorial
0s / 6sFrame 0
Copy it exactly
用 `/hyperframes` 做一条 1920×1080、30 fps、6 秒的动效:一个只有细线框的版面从桌面宽度连续收窄到手机宽度,标题由浏览器按当前宽度真实重新换行,最后桌面版和手机版并排。
1. 画面:底色 `#E8E6E1`;标题 `#1C1C1A`,字重 600、字距 -0.01em、行高 1.25、`text-wrap: balance`;中文用 Noto Sans SC,西文和数字用 Schibsted Grotesk,本地 `@font-face`。字号只有 72px 和 48px 两档,量尺数字 36px。没有手机机身、刘海、浏览器顶栏和圆点,没有阴影和渐变。
2. 框:高 640,1px `#BDB9AE` 线,内边距上 56、左右 48,0 圆角;框内标题贴上沿,贴底有一个高 160、左右各 48、1px 线、8px 圆角的空占位块。框顶 y=200,水平居中在 x=960。框下 32px 处是 1px `#6E6C66` 量尺线,两端各一条 17px 高的刻度,量尺线下 20px 居中写宽度数字,强调色 `#2F5BFF`。
3. 文案:「把设计参考交给 AI,它就能照着做出来」。英文:Give your AI the design reference and it builds the same thing。
4. 节拍:0 – 0.5 秒 1440 宽,标题单行;0.5 – 2.1 秒框宽 1440 到 390,一条补间,1.6 秒 `power2.inOut`,直接补间容器 `width`,标题让浏览器真实换行(不要做两张图交叉淡化,不要把标题裁切或溢出框外);2.1 – 2.6 秒停在 390;2.6 – 3.5 秒并排移动;3.7 – 6.0 秒并排停留 2.3 秒。
5. 断点:框宽跨过 768 的时刻(用补间曲线反推:进度 0.64,补间 0.5757,起点 1.421 秒)字号 72px 到 48px,0.2 秒 `power2.inOut`。字号用 CSS 变量 `--fs` 做补间,不要补间 `fontSize`。
6. 量尺数字:只有一个,是框宽的实时读数。把 CSS 变量 `--w`(数值)和 `width` 放在同一条补间里(1440 到 390),数字用 `counter-reset: w round(var(--w))` 加 `::after { content: counter(w) }` 显示。
7. 并排:同一个舞台(原点 960,540)0.9 秒 `power2.inOut` 缩到 0.8 倍,手机框同时右移 780px;左边那个桌面框(宽 1440、标题 72px 单行,也是真实排版)3.1 – 3.7 秒用 `clip-path` 从左往右展开(0.6 秒 `power3.out`;要等手机框挪开再展开,否则两个标题叠在一起),它的量尺 3.4 – 3.7 秒淡入。最终桌面框屏幕坐标 x 180 – 1332,手机框 x 1428 – 1740。
8. 禁止:标签、步骤号、弹跳、呼吸漂浮、第二种强调色。
需要替换的地方(在 `index.html` 里 `id="reflow"` 的挂载元素上写 `data-variable-values` 传入,换别的中文文案后要重新生成字体子集):
- 文案:`headline`。
- 颜色:`accentColor`、`ink`、`muted`、`line`、`bg`。
- 宽度和字号:`startWidth`(1440)、`endWidth`(390)、`breakpoint`(768)、`bigSize`(72)、`smallSize`(48);量尺数字自动跟随框宽。
- 时间:`narrowAt`(0.5)、`narrowDuration`(1.6)、`sizeSwapDuration`(0.2)、`compareAt`(2.6)。Learn the technique
让容器宽度连续变化,用浏览器真实排版换行说明响应式,不要用图片交叉淡化:容器 1440 到 390,1.6 秒 `power2.inOut`,宽度每过一个断点字号降一档(768 处 72px 到 48px,0.2 秒),最后用同一份文案并排两种宽度,各自标注宽度,并排停留不少于 2 秒。
MCP
get_video({ "id": "motion-text-responsive-reflow" })Beats
| Time | Purpose | Visual | Camera | Transition | On-screen text |
|---|---|---|---|---|---|
| 0–0.5s | Show the headline at desktop width | A 1440 px hairline frame, one 72 px line, ruler reads 1440 | static | — | Give your AI the design reference and it builds the same thing |
| 0.5–2.1s | Show that rewrapping is real layout by narrowing continuously | Frame 1440 to 390 on power2.inOut with real rewrapping; at 1.421 s it crosses 768 and the size drops 72 to 48 px over 0.2 s; ruler number follows the live width | static | — | — |
| 2.1–2.6s | Read the three-line phone headline | 390 px wide, three lines, fully still | static | — | — |
| 2.6–3.7s | Bring both widths into one view | The stage scales to 0.8 and the phone frame moves right 780 px; from 3.1 s the desktop frame wipes open left to right with clip-path | zoom out | scale and slide | — |
| 3.7–6s | Hold the side-by-side comparison | Desktop 1440 on one line beside phone 390 on three, each labelled, still for 2.3 s | static | — | — |
Parameters
| Parameter | Default | Range | Kind |
|---|---|---|---|
Headline headline | 把设计参考交给 AI,它就能照着做出来 | — | Content |
Width number color accentColor | #2F5BFF | — | Look |
Headline color ink | #1C1C1A | — | Look |
Ruler color muted | #6E6C66 | — | Look |
Frame line color line | #BDB9AE | — | Look |
Background bg | #E8E6E1 | — | Look |
Start width startWidth | 1440px | 1200 – 1600px | Look |
End width endWidth | 390px | 320 – 480px | Look |
Breakpoint for the size drop breakpoint | 768px | 500 – 1000px | Motion |
Size above the breakpoint bigSize | 72px | 56 – 88px | Look |
Size below the breakpoint smallSize | 48px | 32 – 64px | Look |
Narrowing start narrowAt | 0.5s | 0.3 – 1s | Timing |
Narrowing duration narrowDuration | 1.6s | 1 – 2.2s | Motion |
Size drop duration sizeSwapDuration | 0.2s | 0.1 – 0.4s | Motion |
Side-by-side start compareAt | 2.6s | 2.4 – 3.1s | Timing |
Good for
- Explaining responsive or adaptive layout of a site or design tool
- A launch or site segment that shows one content fitting several screens
- Headlines of 15 to 25 Chinese characters or 8 to 14 English words
Not for
- Showing a real product interface
- More than two widths side by side
- Headlines longer than 4 lines