Shrink to Corner Window
A full-screen picture holds 1.2 s, shrinks into a bottom-right window, two lines slide in on the freed left side, then everything settles; for moving from showing the picture to explaining it.
Motion5s1920×1080 · 30fpsTutorialFeature
0s / 5sFrame 0
Copy it exactly
用 `/hyperframes` 做一个 1920×1080、30 fps、5 秒的「全屏画面缩成小窗让位」动效,底色 `#0F1712`,只有一张主画面和两行字,没有任何其他元素。 做法: 1. 主画面是一张 1920×1080 的图(本条用 `assets/images/chart-story.jpg`),放进一个 1920×1080 的容器 `#shrink-window`(`overflow: hidden`,`transform-origin: 0 0`),图在容器里铺满四边,没有阴影、描边、发光。容器层级高于文字块(`z-index` 2 对 1),这样文字进入时先被缩小中的窗口盖住,不会叠在图上。 2. 文字块:左边 120px、下边 64px、宽 1000px,左对齐。标题 120px / 字重 700 / 行高 136px / 字距 -0.02em,色 `#ECF2EE`,其中「拆开」染 `#7FD99A`;次要句 64px / 字重 500 / 行高 80px,色 `#8FA096`,和标题间距 24px。中文用 Noto Sans SC,西文用 Hanken Grotesk,本地 `@font-face` 指向 `assets/fonts/`。 3. 0.0–1.2 秒:容器全屏,圆角 0;容器里的图 `scale` 1.00 → 1.02,`power1.inOut`,1.2 秒。文字还不可见。 4. 1.2–2.0 秒:容器一个 tween 缩小:`scale` 1 → 1/3、`x` 0 → 1216、`y` 0 → 656、`borderRadius` 0 → 60px(缩小后看到 20px),`power3.inOut`,0.8 秒。最终小窗 640×360,距右边和下边各 64px。全程 16:9,不拉伸,不换画面,不加阴影。 5. 1.52 秒(缩小进行到 40%):标题开始进入;1.67 秒次要句进入(间隔 0.15 秒)。每句 `x` -60 → 0、`opacity` 0 → 1,`expo.out`,0.8 秒,整句一起,不逐字。 6. 2.47–5.0 秒:小窗和文字完全静止,共 2.53 秒,不呼吸、不漂浮、不再缩放。 需要替换的地方: - 文案 `title`、`subtitle`、标题里要染色的词 `accentWord`(必须出现在标题里)。英文:`Now let's take it apart` / `Script, shots, render, one step at a time`,强调词 `apart`;英文会在 1000px 宽里自动折行,文字块底边仍对齐小窗底边。 - 主画面 `picture`(1920×1080 图片路径)。它通过 `<img>` 上的 `data-var-src="picture"` 生效,只改 `src` 不行,要改变量。 - 颜色:`bg`、`ink`、`muted`、`accent`。 - 数字:`hold`(1.2)、`shrinkDuration`(0.8)、`shrinkEase`(power3.inOut)、`pushTo`(1.02)、`windowWidth`(640)、`margin`(64)、`radius`(20)、`textAt`(0.4)、`textGap`(0.15)、`textDuration`(0.8)、`textEase`(expo.out)、`textShift`(60)。小窗位置和缩放倍率由代码按这些数字重算;文字块的 `bottom: 64px` 写在样式里,改了 `margin` 要一起改。 - 字体用本地 `@font-face`,不要联网取字体。
Learn the technique
主画面先全屏停 1.2 秒(图缓推到 1.02),再用 0.8 秒(power3.inOut)整块缩成 640×360 的右下角小窗(距右下各 64px,全程 16:9,圆角 0 → 20px);缩小进行到 40% 时,左侧两行字从左 60px 处依次进入(间隔 0.15 秒,expo.out,0.8 秒);最后小窗和文字一起静止 2.5 秒。小窗不加阴影,缩小中不换画面。
MCP
get_video({ "id": "motion-camera-shrink-to-window" })Beats
| Time | Purpose | Visual | Camera | Transition | On-screen text |
|---|---|---|---|---|---|
| 0–1.2s | Let the picture be seen | Picture full screen, image eases 1.00 to 1.02, no text | slow push-in | — | — |
| 1.2–2s | Make room for text | The whole picture shrinks to 640x360 in the bottom-right corner (64 px from the edges), radius 0 to 20 px, power3.inOut; two lines slide in from the left from 1.52 s, 0.15 s apart | static | — | Now let's take it apart / Script, shots, render, one step at a time |
| 2–2.5s | Text lands | Window in place, both lines finish on expo.out by 2.47 s | static | — | — |
| 2.5–5s | Still end | Text left, window right, dead still | static | — | — |
Parameters
| Parameter | Default | Range | Kind |
|---|---|---|---|
Hold before shrinking hold | 1.2s | 0.6 – 2s | Timing |
Shrink duration shrinkDuration | 0.8s | 0.5 – 1.4s | Timing |
Shrink ease shrinkEase | power3.inOut | — | Motion |
Push-in scale pushTo | 1.02 | 1 – 1.06 | Motion |
Final window width windowWidth | 640px | 480 – 800px | Look |
Window edge distance margin | 64px | 32 – 96px | Look |
Final window radius radius | 20px | 8 – 24px | Look |
Text start (share of the shrink) textAt | 0.4 | 0.2 – 0.7 | Timing |
Delay between lines textGap | 0.15s | 0.1 – 0.3s | Timing |
Text entrance duration textDuration | 0.8s | 0.5 – 1.2s | Timing |
Text ease textEase | expo.out | — | Motion |
Text slide distance textShift | 60px | 24 – 120px | Motion |
Good for
- Moving from a demo picture into a text explanation
- Making room for text while keeping the picture on screen
- Works with two-line Chinese or English copy
Not for
- Pieces where the picture must stay full screen
- Explanations with more than two lines or a list