# Focus Pull Reveal (对焦浮现)

A line resolves out of a defocused ghost: blur, scale and tracking converge 0.1 s apart, hold dead still, then blur out fast; for an opening claim or a chapter line.

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

## Install

- ZIP: https://uifino.com/videos/motion-text-focus-pull/source.zip

A line resolves out of a defocused ghost: blur, scale and tracking converge 0.1 s apart, hold dead still, then blur out fast; for an opening claim or a chapter line.

Rendered video: https://uifino.com/videos/motion-text-focus-pull/preview.mp4

## Beats

- 0-1.4s Pull into focus: The whole line resolves from a 24 px blur, 1.06x scale and 0.08em tracking; the three start 0.1 s apart, 0.9 s each, power3.out Camera: static. On-screen text: "Details make it real".
- 1.4-2.95s Let the viewer read: Fully still: no scale, drift or breathing; one accent word Camera: static.
- 2.95-3.35s Quick exit: The line blurs to 14 px and fades, power3.in, 0.4 s (44% of the entrance) Camera: static.
- 3.35-3.5s Empty tail: Background only

## Parameters

- `blurFrom` Start blur: default 24px, range 8 to 40px
- `scaleFrom` Start scale: default 1.06, range 1 to 1.2
- `trackingFrom` Start letter spacing: default 0.08em, range 0 to 0.2em
- `startAt` Focus start: default 0.3s, range 0 to 1s
- `offset` Lag between the three: default 0.1s, range 0 to 0.3s
- `focusDuration` Focus duration: default 0.9s, range 0.6 to 1.4s
- `focusEase` Focus ease: default power3.out
- `exitStart` Exit start: default 2.95s, range 2 to 3.2s
- `exitDuration` Exit duration: default 0.4s, range 0.2 to 0.5s
- `exitBlur` Exit blur: default 14px, range 4 to 30px
- `exitEase` Exit ease: default power3.in
- `fontSize` Font size: default 120px, range 64 to 160px

## Good for

- A single claim at the start of a film or chapter
- A quiet, refined title that feels like a lens snapping into focus
- Single-line copy in Chinese or English (7 to 12 characters, or 3 to 5 words)

## Not for

- Long or multi-line headlines
- Scenes where the title must keep moving with other elements

## Source files (plain text)

- https://uifino.com/videos/motion-text-focus-pull/source/SPEC.md
- https://uifino.com/videos/motion-text-focus-pull/source/PROMPT.md
- https://uifino.com/videos/motion-text-focus-pull/source/NOTICE.md
- https://uifino.com/videos/motion-text-focus-pull/source/project/assets/fonts/OFL.txt
- https://uifino.com/videos/motion-text-focus-pull/source/project/compositions/focus.html
- https://uifino.com/videos/motion-text-focus-pull/source/project/hyperframes.json
- https://uifino.com/videos/motion-text-focus-pull/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.3 KB |
| SPEC.md | doc | 5.4 KB |

### PROMPT.md

```md
# PROMPT：motion-text-focus-pull

## 照抄复刻
用 `/hyperframes` 做一个 1920×1080、30 fps、3.5 秒的标题动效，只有一行字，底色 `#F6F5F2`，字色 `#121212`，字号 120、字重 600、行高 1.3，单行居中不换行，文字视觉中心在画面 45% 高度。中文用 Noto Serif SC，西文用 Instrument Sans（都是 `@font-face` 指向 `assets/fonts/`，不要联网取字体）。文案「细节，决定质感」，「质感」用强调色 `#D4412A`，其余是字色。

做法：
1. 把整行拆成单个字，每个字一个 `inline-block` 的 span，外面是一整行的容器（`white-space: pre`，中心为缩放原点）。
2. 对焦 0.3–1.4 秒：三样一起收束，每样 0.9 秒、`power3.out`，起点依次错开 0.1 秒。
   - 模糊：整行容器 `filter: blur(24px)` → `blur(0px)`，0.30 秒开始。
   - 缩放：整行容器 `scale` 1.06 → 1，0.40 秒开始。
   - 字距：不要动 `letter-spacing`（会按整像素跳）。给每个字一个横向偏移 `x`，从 `(序号 − (字数−1)/2) × 0.08 × 120` 像素到 0，0.50 秒开始，效果等同字距 0.08em → 0。
   - 不做淡入，不做位移，不逐字错开。
3. 静止 1.4–2.95 秒：什么 tween 都不加，不缩放、不漂移、不呼吸。
4. 退场 2.95–3.35 秒：整行 `blur(0px)` → `blur(14px)`，同时 `opacity` 1 → 0，`power3.in`，0.4 秒。
5. 3.35–3.5 秒只剩底色。

需要替换的地方：
- 文案（变量 `headline`）：中文 `细节，决定质感`，英文 `Details make it real`。
- 强调词（`accentWord`，必须是文案里的连续子串）：中文 `质感`，英文 `real`。
- 强调色 `accentColor`、底色 `bg`、字色 `ink`、字号 `fontSize`。
- 起始模糊 `blurFrom`、起始缩放 `scaleFrom`、起始字距 `trackingFrom`、开始秒数 `startAt`、三样之间的错开 `offset`、收束时长 `focusDuration`、收束缓动 `focusEase`、退场 `exitStart` / `exitDuration` / `exitBlur` / `exitEase`。

## 只学手法
把整行文字当成一个被镜头对焦的东西：模糊 24px → 0、缩放 1.06 → 1、字距 0.08em → 0 三样一起收束，起点依次错开 0.1 秒，各 0.9 秒 `power3.out`，不淡入不位移；清晰后一动不动停 1.55 秒；退场反向虚化到 14px 并淡出，`power3.in` 0.4 秒（入场的 44%）。
```

### SPEC.md

```md
# SPEC：motion-text-focus-pull

一句话：一行字从失焦的虚影里收束成清晰的字，像镜头对上了焦；对上之后一动不动，再快速虚化退场。

## LOOK
- 画布：1920×1080，30 fps，总长 3.5 秒。
- 色值（中性色 4 个，强调色 1 个）：
  - 底色 `#F6F5F2`
  - 字色 `#121212`
  - 次要字 `#6B6966`、分隔线 `#E2DFD8`：本条目画面里没有次要信息，这两个色值保留在配色表里，不上屏
  - 强调色 `#D4412A`：只染一个词（中文「质感」，英文 `real`），面积远小于 10%
- 字体（2 个族，本地 `@font-face`，门禁按用到的字生成子集）：
  - 中文：Noto Serif SC（思源宋体），`assets/fonts/noto-serif-sc.woff2`
  - 西文：Instrument Sans，`assets/fonts/instrument-sans.woff2`
  - 字体栈 `"Instrument Sans", "Noto Serif SC", serif`：西文字母用 Instrument Sans，汉字和全角逗号落到 Noto Serif SC
- 字号：只有 1 档，120px，字重 600，行高 1.3，单行不换行。
- 字距效果：从 0.08em 收到 0em（终点就是 0em，不再做负字距）。实现不改 `letter-spacing`（门禁的 hf-lint 认为它按整像素跳），改成每个字做横向偏移，见 MOTION。
- 排版位置：单行水平居中，文字视觉中心在画面 45% 高度（486px）。每个字是一个 `inline-block` 的 span，整行以中心为缩放原点；字的偏移以整行中心对称，所以文字始终以画面中线为中心。
- 圆角：无。阴影：无。渐变：无。
- 画面上只有一行主张，没有标签、没有装饰线、没有产品界面。

## MOTION
全片一个主动作：对焦。三样一起收束，起点依次错开 0.1 秒，每样都是 0.9 秒、`power3.out`。

| 属性 | 起点 | 终点 | 起始秒 | 时长 | 缓动 | 落定秒 |
| --- | --- | --- | --- | --- | --- | --- |
| 模糊 `filter: blur()` | 24px | 0px | 0.30 | 0.9 | power3.out | 1.20 |
| 缩放 `scale`（以中心为原点） | 1.06 | 1 | 0.40 | 0.9 | power3.out | 1.30 |
| 字距（每个字的横向偏移 `x`） | 0.08em（即第 i 个字偏移 (i − (字数−1)/2) × 0.08 × 字号 px，字号 120 时每档 9.6px） | 0 | 0.50 | 0.9 | power3.out | 1.40 |

- 不做淡入，不做位移，不逐字逐词：整行是一个整体在对焦。
- 清晰后静止：1.40 秒到 2.95 秒共 1.55 秒（大于要求的 1.5 秒），不缩放、不漂移、不呼吸。
- 退场：2.95 秒开始，0.4 秒，`power3.in`，模糊 0 → 14px，同时透明度 1 → 0。0.4 秒是入场 0.9 秒的 44%。
- 3.35 秒到 3.5 秒只剩底色。
- 转场：无（单个动效）。运动模糊开关不用，因为模糊本身就是被动画的内容。

## 逐拍节拍表
| 拍 | 起止秒 | 画面 | 镜头 | 转场 | 屏幕文案原文 |
| --- | --- | --- | --- | --- | --- |
| focus | 0 - 1.4 | 一团模糊的虚影，逐渐收束成清晰的字；虚影起点比终点大 6%、字距宽 0.08em | 固定 | 无 | 细节，决定质感 |
| hold | 1.4 - 2.95 | 完全静止，只有「质感」是强调色 | 固定 | 无 | 细节，决定质感 |
| exit | 2.95 - 3.35 | 整行虚化并淡出 | 固定 | 无 | 细节，决定质感 |
| clear | 3.35 - 3.5 | 只剩底色 | 固定 | 无 | 无 |

英文版文案：`Details make it real`，强调词 `real`。代码按子串找强调词，不依赖汉字数量，英文也能正确拆分和计时。

## 参数接线
全部是 `compositions/focus.html` 根元素上的 `data-composition-variables`，用 Studio 的变量面板或宿主的 `data-variable-values` 改。

| 变量 id | 默认值 | 作用 |
| --- | --- | --- |
| `headline` | 细节，决定质感 | 整行文案 |
| `accentWord` | 质感 | 要染强调色的子串，必须是文案里的连续一段 |
| `accentColor` | #D4412A | 强调色 |
| `bg` | #F6F5F2 | 底色 |
| `ink` | #121212 | 字色 |
| `fontSize` | 120 | 字号，px |
| `blurFrom` | 24 | 起始模糊，px |
| `scaleFrom` | 1.06 | 起始缩放 |
| `trackingFrom` | 0.08 | 起始字距，em |
| `startAt` | 0.3 | 模糊开始的秒数 |
| `offset` | 0.1 | 缩放、字距相对前一样晚开始的秒数 |
| `focusDuration` | 0.9 | 三样各自的收束时长 |
| `focusEase` | power3.out | 收束缓动 |
| `exitStart` | 2.95 | 退场开始秒数 |
| `exitDuration` | 0.4 | 退场时长 |
| `exitBlur` | 14 | 退场终点模糊，px |
| `exitEase` | power3.in | 退场缓动 |

`index.html` 里的底色用 CSS 变量 `--bg`，默认 `#F6F5F2`，与变量 `bg` 保持一致。总时长 3.5 秒写在 `index.html` 根元素和场景宿主的 `data-duration`，变量改不了它。

## 禁用项
- 逐字或逐词闪烁、逐字错开入场
- 彩色光晕、辉光、渐变字
- 淡入加上滑；任何位移
- 落定后的呼吸、漂浮、缓慢缩放
- 画面上任何说明文字、标签、手法解释
- 阴影、圆角、装饰线

## 已知取舍
- 字距用每个字的 `x` 偏移实现，不用 `letter-spacing`，是为了动画不按整像素跳；效果和改字距一致，但每个字单独成块，西文字母之间失去字偶距（kerning）微调，字号 120、字距终点 0 时肉眼几乎看不出。
- 次要字 `#6B6966` 和分隔线 `#E2DFD8` 不上屏，只保留在配色表。
- 英文版用 Instrument Sans 写字母、Noto Serif SC 兜底汉字，所以中文是宋体、英文是无衬线，这是 BRIEF 指定的字体组合。
- 英文版已用 `data-variable-values` 临时切到 `Details make it real` 跑过门禁看过 0.7 秒和 1.6 秒的帧，拆词和强调正确，之后已恢复。
```
