# Pull-Back Reveal (拉远揭示)

The camera holds tight on one big number, then makes a single decelerating pull-back that lands exactly on the full sentence; a suspense-then-answer beat for one line.

- Ref: `video/motion-camera-pull-back-reveal` (code video · motion · any · any · 4.5s at 30fps)
- Page: https://uifino.com/en/videos/motion-camera-pull-back-reveal
- Markdown: https://uifino.com/md/videos/motion-camera-pull-back-reveal.md
- Preview image: https://uifino.com/videos/motion-camera-pull-back-reveal/poster.jpg

## Install

- ZIP: https://uifino.com/videos/motion-camera-pull-back-reveal/source.zip

The camera holds tight on one big number, then makes a single decelerating pull-back that lands exactly on the full sentence; a suspense-then-answer beat for one line.

Rendered video: https://uifino.com/videos/motion-camera-pull-back-reveal/preview.mp4

## Beats

- 0-1.3s Hold the close-up long enough to make the viewer curious: The number scaled 8.5x fills the middle of the frame, the neighbouring words are out of frame, fully still for 1.3 s Camera: static. On-screen text: "0.8s".
- 1.3-2.5s One pull-back gives the answer: Scale 8.5 to 1 while carrying the number from the frame centre back to its place in the sentence, one power3.out move, no rotation, no counting Camera: pull-back.
- 2.5-4.5s The full sentence holds so it can be read: The full sentence centred at 120 px, completely still for 2 s Camera: static. On-screen text: "First paint in 0.8s".

## Parameters

- `closeScale` Close-up scale: default 8.5, range 4 to 12
- `pullStart` Close-up hold (when the pull-back starts): default 1.3s, range 1 to 2s
- `pullDuration` Pull-back duration: default 1.2s, range 0.8 to 1.8s
- `pullEase` Pull-back ease: default power3.out
- `fontSize` Sentence font size: default 120px, range 96 to 144px

## Good for

- A single line with one key number or word that should raise a question before the full meaning arrives
- An opening line or chapter claim that needs a little suspense
- Works in Chinese and English; one line in three parts (before, number, after)

## Not for

- Frames with several text blocks or several elements entering together
- Scenes where the number itself should count up

## Source files (plain text)

- https://uifino.com/videos/motion-camera-pull-back-reveal/source/SPEC.md
- https://uifino.com/videos/motion-camera-pull-back-reveal/source/PROMPT.md
- https://uifino.com/videos/motion-camera-pull-back-reveal/source/NOTICE.md
- https://uifino.com/videos/motion-camera-pull-back-reveal/source/project/assets/fonts/OFL.txt
- https://uifino.com/videos/motion-camera-pull-back-reveal/source/project/claims.json
- https://uifino.com/videos/motion-camera-pull-back-reveal/source/project/compositions/pull.html
- https://uifino.com/videos/motion-camera-pull-back-reveal/source/project/hyperframes.json
- https://uifino.com/videos/motion-camera-pull-back-reveal/source/project/index.html

## How to use

- Copy the beats and parameters; replace only the copy, the accent color and the product screenshots.
- `PROMPT.md` has two prompts: one to reproduce this video exactly, one to learn only the technique.
- Build with HyperFrames (`/hyperframes`); the project in the ZIP is a ready starting point.

## Files

| Path | Role | Size |
| :--- | :--- | ---: |
| PROMPT.md | doc | 2.9 KB |
| SPEC.md | doc | 7.6 KB |

### PROMPT.md

```md
# PROMPT：motion-camera-pull-back-reveal

## 照抄复刻
> 给用户的 AI：用 `/hyperframes` 按下面的数字复刻，不要自己加动作。

做一个 1920×1080、30 fps、4.5 秒的 HyperFrames 动效：黑底上先给一个大数字的特写，停住，再一次减速拉远，露出它所在的整句话，句子停住。

- 底色 `#0E0E10`，字色 `#F4F4F2`，数字染强调色 `#F2B544`（只染数字）。没有线、没有渐变、没有光晕，画面上只有这一句话。
- 字体用本地 `@font-face`：汉字 Noto Sans SC，西文和数字 IBM Plex Sans。一档字号 120px，字距 -0.02em，行高 1.3，整句字重 500，数字字重 600。整句居中，分成「前文 / 数字 / 后文」三段 span，数字两侧各留 0.06em 外边距。
- 整句是一个 1920×1080 的层（缩放中心在画面中心），外面再套一层只管平移的容器。
- 0–1.3 秒：特写。整句层 `scale` 8.5，外层平移让数字中心落在画面中心 (960, 540)。两侧的字在画外。完全静止，不缓慢放大。
- 1.3–2.5 秒：一次拉远，1.2 秒，缓动 `power3.out`，两条 tween 同时开始同时结束，不停顿、不旋转、不回弹、数字不跳动：
  - 缩放：整句层 `scale` 从 8.5 线性插值到 1，`ease: "power3.out"`，`force3D: false`。
  - 平移：外层 `translate` = `calc(var(--k) * var(--ax)) calc(var(--k) * var(--ay))`，`--ax`、`--ay` 是 (960 − 数字中心 x, 540 − 数字中心 y)（字体加载后用 `offsetLeft/offsetWidth` 量，数字垂直方向再加 0.025 倍字号的光学修正），`--k` 从 8.5 线性走到 0，同一条 `power3.out`。不要用 `expo.out`，它会在 0.3 秒内砸完，看不出长减速。
- 2.5–4.5 秒：整句静止，什么都不动。
- 数字是演示数据，在 `project/claims.json` 写明「演示数据，替换成你的真实数据」。

需要替换的地方：
- 前文 `before`（默认「首屏只要 」，结尾带空格）、数字 `number`（默认 0.8）、后文 `after`（默认「 秒」，开头带空格）。英文：`First paint in `、`0.8s`、空，同时把 `closeScale` 改成 6.5（8.5 下 `0.8s` 比画面还宽）。
- 配色：`accent`、`bg`、`ink`
- 字号：`fontSize`，默认 120
- 特写倍率 `closeScale`（默认 8.5，要大到两侧字在画外）、特写停留 `pullStart`（默认 1.3 秒，至少 1 秒）、拉远时长 `pullDuration`（默认 1.2 秒）、拉远缓动 `pullEase`（默认 `power3.out`）

这些都是 `compositions/pull.html` 根元素上的变量，在 `index.html` 的 `#pull` 上用 `data-variable-values` 覆盖。

## 只学手法
先给悬念再给答案：镜头贴着句子里的一个数字静止 1.3 秒，然后一次 1.2 秒的 `power3.out` 拉远（缩放和平移都是线性插值加同一条缓动）（倍率 8.5 → 1，数字同时回到句中位置），拉远结束时整句刚好完整入画，之后静止 2 秒，全程不旋转、不计数、不加任何装饰。
```

### SPEC.md

```md
# SPEC：motion-camera-pull-back-reveal

一句话：镜头先贴着一个大数字「0.8」静止 1.3 秒，再用一次 1.2 秒的减速拉远（前 0.7 秒变化最大，约 2.3 秒肉眼落定），拉远结束时整句「首屏只要 0.8 秒」居中入画，之后静止 2 秒。

## LOOK
- 色值：底 `#0E0E10`，字 `#F4F4F2`，强调色 `#F2B544`（只染数字）。BRIEF 里的次要字色 `#8A8A8E` 和线色 `#26262A` 画面上没有位置用，没有写进代码；也就没有任何线条。中性色只有 2 个。
- 强调色面积：拉远后数字只占整句的一小块，远小于 10%；特写那 1.3 秒里数字是整个画面的主体，实测笔画占画面约 22%，见「已知取舍」。
- 字体：西文和数字用 IBM Plex Sans（本地 `assets/fonts/ibm-plex-sans.woff2`），汉字用 Noto Sans SC（本地 `assets/fonts/noto-sans-sc.woff2`）。写在同一条 `font-family: "IBM Plex Sans", "Noto Sans SC", sans-serif` 里，数字走 Plex，汉字落到 Noto。字体子集由门禁生成，基本 ASCII 字符一直在子集里，所以换成英文文案也能正常显示。
- 字号：只有一档，120px，字距 -0.02em，行高 1.3。字重 2 档：整句 500，数字 600。
- 数字两侧各留 0.06em（7.2px）外边距，加上前后文里自带的空格，句内间距就是空格宽度加这 7.2px，拉远前让两边的字完全在画外。
- 圆角、阴影、渐变、线条：全部没有。画面上除了这一句话什么都没有。

## MOTION
- 只有一个动作：拉远。两条 tween 同时开始、同时结束，共用同一个缓动，一次完成，不停顿、不回弹、不旋转、数字不跳动。
  - 缩放：整句所在的层，`scale` 从 8.5 线性插值到 1，缩放中心是画面中心 (960, 540)，`force3D: false`（每一帧按新大小重新画字，边缘锐利），缓动由变量 `pullEase` 决定。
  - 平移：外层容器的 `translate` 等于「k × 偏移量」，k 是 CSS 变量，从 8.5 线性走到 0，缓动同上；偏移量是 (960 − 数字中心 x, 540 − 数字中心 y)，由脚本在字体加载好后量出来，数字垂直方向加 0.025 倍字号的光学修正（数字笔画比文字盒子低一点）。缩放和 k 用同一条缓动，数字在屏幕上的位置随缓动进度线性地从画面中心走回句中位置，两者始终同步。
- 缓动：默认 `power3.out`，不是 BRIEF 写的 `expo.out`。`expo.out` 直接套在线性缩放上，前 0.3 秒就缩掉 85%，剩下的一秒肉眼看不出变化，是「砸」下来而不是长减速；之前再叠一层对数缩放更集中在开头。`power3.out` 在成片上持续可见地变化：GSAP 的 power3 是四次方曲线，缩放倍率 = 1 + 7.5 × (1 − 进度)^4：1.5 秒约 4.6 倍，1.6 秒约 3.4 倍，1.8 秒约 1.9 倍，2.0 秒约 1.2 倍，2.2 秒约 1.03 倍，2.3 秒起肉眼看不出变化。`pullEase` 可换成任何 GSAP 缓动名，缩放和平移都跟着走；换成 `expo.out` 会回到急刹的样子。
- 时间：0.00–1.30 秒特写，完全静止（不用缓慢放大，那是生成感）。1.30–2.50 秒是拉远的时间窗口，画面主要变化集中在 1.3–2.0 秒，2.0–2.3 秒是越来越慢的收尾，2.3 秒起肉眼已看不出变化，到 2.5 秒精确落定。2.50–4.50 秒整句静止 2 秒。
- 拉远中途两侧的字会被画面左右边缘切到，这是镜头扫过整句话时的自然样子，不加遮罩。拉远最初几帧左边缘会露出「要」被切开的一角，右边缘露出「秒」的一角，是镜头从特写退开时邻字最先入画的样子，不是渲染错误，也不加遮罩。
- 运动模糊：不开启。`data-motion-blur` 在这条里门禁报没有可模糊的运动，成片上也看不到拖影，已从根上删掉。
- 特写倍率为什么是 8.5：数字在特写时宽约 1400px、高约 735px，占画面宽 73%、高 68%；两侧文字离数字中心约 1000px 以外，在画外 960px 之外，所以特写里只有数字。数字 120px 放大 8.5 倍后是 1020px 的字，门禁截图里边缘仍然锐利。

## 逐拍节拍表
| 拍 | 起止秒 | 画面 | 镜头 | 转场 | 屏幕文案原文 |
| --- | --- | --- | --- | --- | --- |
| close-up | 0.00 - 1.30 | 数字「0.8」放大 8.5 倍，居中，两侧字在画外 | 静止 | 无 | 0.8 |
| pull-back | 1.30 - 2.50 | 缩放 8.5 → 1，数字从画面中央回到句中位置，整句渐渐入画，约 2.3 秒肉眼落定 | 一次拉远，`power3.out`（线性缩放），1.2 秒 | 无 | 首屏只要 0.8 秒 |
| hold | 2.50 - 4.50 | 整句居中静止 | 静止 | 无 | 首屏只要 0.8 秒 |

英文版：前文 `First paint in `（结尾带空格）、数字 `0.8s`（把单位 s 放进数字里，特写时单位和数字一起在画面里，不会半个字母露在边上）、后文留空，`closeScale` 改成 6.5（实测：6.5 时 `0.8s` 特写宽约 1450px，在画内，两侧字在画外；保持 8.5 时数字宽度超过画面，两头被切掉）。已临时用 `data-variable-values` 换成英文文案跑过门禁并看过 0.5 秒和 3.5 秒截帧，画面跟着变。代码里文案全部来自变量，字号和位置都是测出来的，不依赖汉字。

## 参数接线
所有参数都是 `project/compositions/pull.html` 根元素 `data-composition-variables` 里的变量，用户的 AI 在挂载处（`index.html` 的 `#pull` 元素）用 `data-variable-values` 覆盖：

| 变量 | 默认值 | 说明 |
| --- | --- | --- |
| before | 首屏只要 （末尾有一个空格） | 数字前面的字 |
| number | 0.8 | 特写的数字，必须是演示数据，换成真实数据 |
| after | ` 秒`（开头有一个空格） | 数字后面的字 |
| accent | #F2B544 | 数字颜色 |
| bg | #0E0E10 | 底色 |
| ink | #F4F4F2 | 字色 |
| fontSize | 120 | 整句字号（px） |
| closeScale | 8.5 | 特写倍率，要大到让两侧的字在画外，又不能让数字比画面还宽（英文 `0.8s` 用 6.5） |
| pullStart | 1.3 | 特写停留多久，也就是拉远从第几秒开始（至少 1 秒） |
| pullDuration | 1.2 | 拉远时长（秒） |
| pullEase | power3.out | 拉远缓动的名字，缩放和平移共用，任何 GSAP 缓动名都行 |

总时长 4.5 秒由 `index.html` 里根和 `#pull` 的 `data-duration` 决定；改 `pullStart` 或 `pullDuration` 时，最后要留够整句静止的 2 秒，需要同步改这两处的 `data-duration`：总时长 = pullStart + pullDuration + 2。

## 数据来源
画面上的 0.8 是演示数据，`project/claims.json` 里写明「演示数据，替换成你的真实数据」。

## 禁用项
拉远时旋转、数字跳动计数、任何装饰线、特写阶段缓慢放大或呼吸、拉远中途停顿或回弹、画面上除这一句话外的任何文字、渐变和光晕。

## 已知取舍
- 门禁的「文字溢出画面」检查对特写必然成立（文字故意比画面大），所以相关元素写了 `data-layout-allow-overflow`。
- 数字「0.8」会被「编号或时间码」规则误判成小数当标签，在数字元素上用 `data-lint-ignore="F3:..."` 写明了理由。
- 特写阶段强调色面积约 22%，超过手册的 10%：这 1.3 秒里数字就是整个画面，BRIEF 要求数字用强调色，门禁没有报警，评审请知悉。
- 缓动用 `power3.out` 而不是 BRIEF 的 `expo.out`：`expo.out` 在成片上是 0.3 秒的急刹，看不出「长减速」，BRIEF 的核心要求「拉远用一次长减速」优先。`pullEase` 可改回 `expo.out`。
- 英文版 `number` 传空会回落到默认值 0.8，`after` 传空字符串则真的为空。
- 数字比句子里其他字更重（600 对 500）又染强调色：这是这条动效要突出的那个「细节」，不是装饰。
```
