# Slow Push-In Headline (缓推聚焦标题)

A centered headline gains weight in one slow, unbroken camera push; the headline layer pushes further than the background for a touch of depth, then holds still.

- Ref: `video/motion-camera-push-in-headline` (code video · motion · any · any · 4s at 30fps)
- Page: https://uifino.com/en/videos/motion-camera-push-in-headline
- Markdown: https://uifino.com/md/videos/motion-camera-push-in-headline.md
- Preview image: https://uifino.com/videos/motion-camera-push-in-headline/poster.jpg

## Install

- ZIP: https://uifino.com/videos/motion-camera-push-in-headline/source.zip

A centered headline gains weight in one slow, unbroken camera push; the headline layer pushes further than the background for a touch of depth, then holds still.

Rendered video: https://uifino.com/videos/motion-camera-push-in-headline/preview.mp4

## Beats

- 0-3.6s Give the headline weight through the push: Headline layer 1.00 to 1.12, background grid 1.00 to 1.05, same start and end, sine.inOut without a pause, 3.6 s Camera: push-in. On-screen text: "An idea worth seeing clearly".
- 3.6-4s The push ends and the headline sits at its best size: Fully still, no tween at all Camera: static.

## Parameters

- `textScale` Headline layer end scale: default 1.12, range 1.05 to 1.25
- `bgScale` Background grid end scale (below the headline layer): default 1.05, range 1 to 1.15
- `pushDuration` Push duration: default 3.6s, range 3 to 3.8s
- `pushEase` Push ease: default sine.inOut
- `fontSize` Headline font size: default 120px, range 64 to 160px

## Good for

- A single claim at the start of a film or chapter that deserves a slow read
- A restrained, quiet, slightly cinematic title shot
- Works for Chinese and English, one sentence of up to two lines

## Not for

- Scenes where the title needs its own entrance animation
- Multi-block text or frames where other elements move at the same time

## Source files (plain text)

- https://uifino.com/videos/motion-camera-push-in-headline/source/SPEC.md
- https://uifino.com/videos/motion-camera-push-in-headline/source/PROMPT.md
- https://uifino.com/videos/motion-camera-push-in-headline/source/NOTICE.md
- https://uifino.com/videos/motion-camera-push-in-headline/source/project/assets/fonts/OFL.txt
- https://uifino.com/videos/motion-camera-push-in-headline/source/project/compositions/push.html
- https://uifino.com/videos/motion-camera-push-in-headline/source/project/hyperframes.json
- https://uifino.com/videos/motion-camera-push-in-headline/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.5 KB |
| SPEC.md | doc | 6.6 KB |

### PROMPT.md

```md
# PROMPT：motion-camera-push-in-headline

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

做一个 1920×1080、30 fps、4 秒的 HyperFrames 动效：深绿底上一句居中的标题，在一次缓慢的镜头推进里变大一点，推完静止。

- 底色 `#0F1712`，字色 `#ECF2EE`，强调色 `#7FD99A`（只染标题里的一个词），背景纹理线 `#25352B`。
- 背景只有一层淡网格：一个铺满画布的 div（`inset: 0`）用 CSS 渐变画线（不用 SVG，不要做成比画布大的缩放层），线宽固定 2px，格子起始 120px，`background-position: 50% 50%`；起始时竖线占 x = 60 + 120n 到 62 + 120n，横线占 y = 120n 到 120n + 2。没有粒子，没有暗角，没有光晕，没有渐变字。
- 标题一帧就在，没有入场动画。中文用 Noto Serif SC，西文用 Instrument Sans，字重 600，字号 120px，字距 0.02em，行高 1.3，最大宽度 1300px，居中，`text-wrap: balance`。字体用本地 `@font-face`。
- 镜头推进用两条 tween 完成，中心都是画面中心，0 秒同时开始，3.6 秒同时结束，缓动 `sine.inOut`，中途不停、不回弹：
  - 标题层 `scale` 1 → 1.12
  - 背景网格的 `background-size` 从 120px 变到 126px（即 120 × 1.05），线宽不变
- 3.6–4.0 秒完全静止。不写 `will-change`，tween 里写 `force3D: false`，让放大后的字每一帧都清晰。
- 不加运动模糊，不加任何别的动作，画面上除了标题没有任何文字。

需要替换的地方：
- 标题原文：`headline`，默认「一个想法，值得被看清」；英文「An idea worth seeing clearly」
- 要染强调色的词：`accentWord`，必须是标题里的一段原文，默认「看清」；英文用「clearly」
- 配色：`bg`、`ink`、`accentColor`、`lineColor`
- 字号：`fontSize`，默认 120
- 推进力度：`textScale`（默认 1.12）、`bgScale`（默认 1.05，要小于 textScale）
- 推进时长和缓动：`pushDuration`（默认 3.6 秒，3–3.8 之间）、`pushEase`（默认 `sine.inOut`）

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

## 只学手法
镜头推进只做一件事：标题层和背景层从画面中心同时缓慢放大，标题放大到 1.12 倍、背景格子只放大到 1.05 倍，差出来的 7% 就是纵深；全程一条 `sine.inOut`、3.6 秒以上、不停顿不回弹，推完再静止一小会儿，标题在那个大小上落定。
```

### SPEC.md

```md
# SPEC：motion-camera-push-in-headline

> 先写这份，再写代码。每个形容词落成数字。

一句话：一句居中的标题，在一次 3.6 秒、不停顿的缓慢镜头推进里变大一点点，推完后静止 0.4 秒。标题比背景推得多，所以有纵深。

## LOOK
- 色值：底 `#0F1712`，字 `#ECF2EE`，背景纹理线 `#25352B`，强调色 `#7FD99A`。中性色只有 3 个，强调色只染「看清」两个字（英文版染「clearly」），面积远小于 10%。BRIEF 里的次要字色 `#8FA096` 画面上没有位置用，没有放进代码。
- 字体：标题用 Noto Serif SC（思源宋体，字重 600，本地 `assets/fonts/noto-serif-sc.woff2`）；西文用 Instrument Sans（字重 600，本地 `assets/fonts/instrument-sans.woff2`）。两个字体写在同一条 `font-family: "Instrument Sans", "Noto Serif SC", serif` 里：西文字母走 Instrument Sans，汉字和中文标点自动落到 Noto Serif SC。字体子集由门禁生成。
- 字号：只有一档，120px；字距 0.02em；行高 1.3；文字居中。标题最大宽度 1300px，超过时自动换行并用 `text-wrap: balance` 配平（英文版会变成两行）。
- 圆角：无。阴影：无。渐变：无。
- 背景纹理：一整层细线网格，用 CSS 渐变画在一个铺满画布的 div 上（`inset: 0`，1920×1080，不用 SVG，不用比画布大的缩放层）。两条渐变（`90deg` 竖线、`180deg` 横线），每条线宽固定 2px，颜色 `#25352B`，格子 `background-size` 起始 120px，`background-position: 50% 50%`。这样格子的中心始终落在画面中心 (960, 540)：起始时竖线占 x = 60 + 120n 到 62 + 120n，横线占 y = 120n 到 120n + 2（已在渲染出的视频帧上逐像素量过），画面中心落在格子正中间，不会有一根线正好穿过标题中线。除此之外画面上什么都没有，没有粒子，没有暗角，没有光晕。

## MOTION
- 只有一个动作：镜头推进。用两个缩放表示，同时开始、同时结束，各自只有一条 tween，中途不停、不回弹。
  - 标题层：`scale` 1 → 1.12，3.6 秒，`sine.inOut`
  - 背景层：网格格子 `background-size` 从 120px 变到 126px（120 × bgScale），3.6 秒，`sine.inOut`；线宽不跟着变，始终 2px
  - 两层的缩放中心都是画面中心 (960, 540)。
- 推进时间 0.00–3.60 秒。3.60–4.00 秒完全静止，没有任何 tween，推进的结束位置就是最后一帧。
- 推进最快的时刻在 1.8 秒，此时标题层每秒约变大 5%，肉眼看是缓慢连续的推近，不会觉得被甩出去。
- 为什么选 `sine.inOut`：BRIEF 要求 `power2.inOut` 或 `sine.inOut`，并且要「匀」。`sine.inOut` 两头更柔、中间更平，3.6 秒里看不出明显的起步和刹车。
- 因为标题层放大 12%，背景格子只放大 5%：背景网格线在边缘每秒挪动的距离比文字小，形成一点纵深（推完后画面左缘第一条竖线从 x≈60 挪到 x≈15）。文字落定时占画面宽度约 1224 × 1.12 ≈ 1371px，仍在 1536px 的 80% 标题安全区内。
- 不用运动模糊：整段速度很慢，加模糊反而会让字发软。
- 不开 GPU 图层加速（不写 `will-change`，tween 里写 `force3D: false`），保证放大后每一帧都按新的大小重新绘制文字，字边缘锐利。

## 逐拍节拍表
| 拍 | 起止秒 | 画面 | 镜头 | 转场 | 屏幕文案原文 |
| --- | --- | --- | --- | --- | --- |
| push | 0.00 - 3.60 | 标题一开始就在画面正中，背景淡网格铺满 | 标题层 1.00 → 1.12，背景格子 1.00 → 1.05（120px → 126px），`sine.inOut` 不间断 | 无 | 一个想法，值得被看清 |
| settle | 3.60 - 4.00 | 推进停下，标题完全不动 | 静止 | 无 | 同上 |

英文版：「An idea worth seeing clearly」，强调词 `clearly`。代码按词匹配强调词，不依赖汉字；字号保持 120px，超过 1300px 宽度会自动换成两行（实测：两行各约 900px 宽，推到 1.12 倍后约 1010px，在安全区内）；已临时把 headline、accentWord、bg 换成英文版和另一个底色，在 3.9 秒截帧确认画面真的跟着变。

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

| 变量 | 默认值 | 说明 |
| --- | --- | --- |
| headline | 一个想法，值得被看清 | 标题原文 |
| accentWord | 看清 | 必须是标题里的一段原文，会被染成强调色；留空则不染色 |
| accentColor | #7FD99A | 强调色 |
| bg | #0F1712 | 底色 |
| ink | #ECF2EE | 字色 |
| lineColor | #25352B | 背景纹理线颜色 |
| fontSize | 120 | 标题字号（px） |
| textScale | 1.12 | 标题层推进终点倍率 |
| bgScale | 1.05 | 背景格子推进终点倍率（格子 120px × bgScale），要小于 textScale 才有纵深 |
| pushDuration | 3.6 | 推进时长（秒），到 4 秒结束前自然静止 |
| pushEase | sine.inOut | 推进缓动 |

推进的起点固定在 0 秒，总时长 4 秒由 `index.html` 的 `data-duration` 决定；要改总时长就同时改 `index.html` 里根和 `#push` 的 `data-duration`，推进时长靠 `pushDuration`。

## 禁用项
推进中途停顿或回弹、背景粒子、暗角加光晕、渐变、画面上的任何标签或说明文字、标题入场动画（淡入、上滑、逐词）、呼吸或漂浮循环、推进之外的任何动作。

## 已知取舍
- 缩放中心在画面中心而不是标题中心：标题正好居中，两者重合。
- 标题一开始就完整可见，没有入场动作：这条动效只演示「推进」这一个手法，入场留给别的条目。放进整片时，可以接在任何一句标题落定之后。
- 背景不用 `transform: scale` 的缩放层，而是直接改网格的 `background-size`：这是为了在渲染出的视频里网格一直画到 1080 底边。曾经用过比画布大 120px 的缩放层，成片底部 y≈993 起有约 87px 空带，门禁截图看不出来。现在的做法已在 draft.mp4 的 0、1.8、3.9 秒帧上量过，y=960 到 1080 每段都有线（最后一条横线在 y=960，3.9 秒帧里最后一条横线在 y≈981）。
- 网格线宽恒为 2px，不随推进变粗：这是格子尺寸变化而不是整层放大。
- 验收网格是否铺满画面，要从渲染出的 draft.mp4 抽帧看，不能只看 `.gate/sheets` 里的 PNG（那是浏览器截图，和成片可能不一样）。
- 门禁如果提示「缓慢缩放」类的生成感警告：推进本身就是这条的主题，且它是镜头的真实移动，不是装饰性的呼吸；其余警告见下方记录。
```
