# Complete the Line (先留半句再补全)

The first half of a line lands and holds so the viewer starts guessing, then the second half pushes in in the accent color; the first half never moves. For a claim with a turn in it.

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

## Install

- ZIP: https://uifino.com/videos/motion-text-complete-the-line/source.zip

The first half of a line lands and holds so the viewer starts guessing, then the second half pushes in in the accent color; the first half never moves. For a claim with a turn in it.

Rendered video: https://uifino.com/videos/motion-text-complete-the-line/preview.mp4

## Beats

- 0-0.55s Put out the first half: Ground only until 0.1 s; the first half rises up inside its mask, 0.45 s, power4.out Camera: static. On-screen text: "Good-looking video?".
- 0.55-1.5s Let the viewer guess: The first half is dead still with room to its right, 0.95 s Camera: static.
- 1.5-2s Complete the line: The second half in the accent color pushes in left to right through its mask, 0.5 s, power3.out; the first half stays put Camera: static. On-screen text: "Copy a good one.".
- 2-4s Let the viewer read: The whole line stays fully still for 2 s Camera: static.

## Parameters

- `firstHalf` First half: default 好看的视频，
- `secondHalf` Second half: default 照着抄就行。
- `accentColor` Accent color (second half): default #F2B544
- `bg` Background: default #0E0E10
- `ink` First half color: default #F4F4F2
- `fontSize` Max font size: default 128px, range 72 to 160px
- `firstAt` First half start: default 0.1s, range 0 to 0.5s
- `firstDuration` First half duration: default 0.45s, range 0.3 to 0.8s
- `firstEase` First half ease: default power4.out
- `holdGap` Pause before the second half: default 0.95s, range 0.9 to 1.2s
- `pushDuration` Push-in duration: default 0.5s, range 0.4 to 0.7s
- `pushEase` Push-in ease: default power3.out

## Good for

- A slogan whose first half poses a question or condition and the second answers it
- Two halves of about 5 to 8 Chinese characters, or 2 to 3 English words each
- A launch claim that needs a beat of suspense

## Not for

- A line with no turn that reads in one breath
- Sentences with three or more parts
- When you want a typewriter effect

## Source files (plain text)

- https://uifino.com/videos/motion-text-complete-the-line/source/SPEC.md
- https://uifino.com/videos/motion-text-complete-the-line/source/PROMPT.md
- https://uifino.com/videos/motion-text-complete-the-line/source/NOTICE.md
- https://uifino.com/videos/motion-text-complete-the-line/source/project/assets/fonts/OFL.txt
- https://uifino.com/videos/motion-text-complete-the-line/source/project/compositions/complete.html
- https://uifino.com/videos/motion-text-complete-the-line/source/project/hyperframes.json
- https://uifino.com/videos/motion-text-complete-the-line/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.4 KB |
| SPEC.md | doc | 5.7 KB |

### PROMPT.md

```md
# PROMPT：motion-text-complete-the-line

## 照抄复刻
用 `/hyperframes` 做一条 1920×1080、30 fps、4 秒的动效：深色底上一句话先只露出前半句，停住让观众猜，再把后半句从旁边推进来补全。

1. 画面：底色 `#0E0E10`；整句单行居中，一档字号 128px，字重 700，字距 -0.02em，行高 1.3。前半句字色 `#F4F4F2`，后半句强调色 `#F2B544`。字体用本地 `@font-face`：西文 Schibsted Grotesk，中文 Noto Sans SC。字号按字数缩：估算宽度 em = 中文字和全角标点每个 1 + 英文字母每个 0.56 + 空格每个 0.25，字号 = min(128, floor(1560 / em))。
2. 结构：整句拆成两个 `overflow: hidden` 的遮罩盒并排放在一个居中的 flex 行里，每个盒里一个 `display: block` 的字块。整行必须加 `white-space: pre`，否则英文前半句末尾的空格会被折掉，两句黏在一起。两个盒从第 0 帧起就在布局里，所以前半句位置不会因后半句出现而变。
3. 前半句入场：0.10 秒起，字块 `yPercent` 从 110 到 0，0.45 秒，`power4.out`。
4. 停顿：前半句落定（0.55 秒）后停 0.95 秒，什么都不动。
5. 后半句入场：1.50 秒起，字块 `xPercent` 从 -105 到 0，0.50 秒，`power3.out`，从左往右推进遮罩盒。不逐字、不淡入、不缩放。
6. 2.00 秒后整句静止 2 秒到片尾。前半句全程不平移。
7. 根元素加 `data-motion-blur="on"` 和 `data-motion-blur-shutter="45"`。
8. 禁止：前半句为让位而平移、逐字打出、省略号下划线空框占位、淡入、回弹、发光。

需要替换的地方（在 `index.html` 里 `id="complete"` 的挂载元素上写 `data-variable-values='{"firstHalf":"Good-looking video? ","secondHalf":"Copy a good one."}'` 传入；换中文文案后要重新生成字体子集，否则缺字）：
- 前半句 `firstHalf`（默认「好看的视频，」，英文末尾留一个空格）和后半句 `secondHalf`（默认「照着抄就行。」）。
- 颜色：`accentColor`、`bg`、`ink`。
- 字号上限 `fontSize`。
- 时间和缓动：`firstAt`、`firstDuration`、`firstEase`、`holdGap`（0.9–1.2 秒）、`pushDuration`、`pushEase`。
- 不要加产品界面和其他文字。

## 只学手法
前半句先落定并停 0.9–1.2 秒让观众去猜，后半句换另一种进场（0.5 秒、`power3.out` 从左往右的遮罩推入）并换成强调色，前半句全程不动，补全后整句静止 2 秒。
```

### SPEC.md

```md
# SPEC：motion-text-complete-the-line

## LOOK
- 色值（中性色 2 个，强调色 1 个）：底 `#0E0E10`，前半句字色 `#F4F4F2`，强调色 `#F2B544`（琥珀黄，只染后半句，面积约 4%）。BRIEF 里的次要字 `#8A8A8E` 和线色 `#26262A` 没有用到：画面只有一句话，没有次要文字，也不画线。
- 字体：西文 Schibsted Grotesk（`assets/fonts/schibsted-grotesk.woff2`），中文 Noto Sans SC（`assets/fonts/noto-sans-sc.woff2`），本地 `@font-face`，门禁按用到的字自动生成子集，OFL 许可。西文排前，中文兜底。
- 字号：只有一档，最大 128px，字重 700，字距 -0.02em，行高 1.3。字号按字数自动缩小，保证整句宽度不超过 1560px（见「参数接线」里的 fontSize）。
- 整行（`#cm-line`）必须写 `white-space: pre`：英文前半句末尾的空格靠它保留，缺了会折掉，两句黏成 `video?Copy`。
- 圆角、阴影、渐变、线条：全部没有。
- 版式：整句单行，两半句在同一行里并排，整行在画面里水平垂直居中（中文版字落在 y ≈ 540px 附近）。两半句各套一个 `overflow: hidden` 的遮罩盒，盒子不画边，只负责切字。后半句的盒子从第 0 帧起就占着位置，所以前半句的位置从头到尾不变。

## MOTION
- 前半句入场：整半句作为一个整体，在自己的遮罩盒里从下往上升进来，`yPercent` 110 到 0，0.10 秒起，时长 0.45 秒，`power4.out`。落定时刻 0.55 秒。
- 停顿：0.55 到 1.50 秒，共 0.95 秒（落在 BRIEF 要求的 0.9–1.2 秒里），没有任何 tween。这一段是让观众自己去猜后半句。
- 后半句入场：1.50 秒起，遮罩盒里的字 `xPercent` 从 -105 到 0，从左往右推进来，时长 0.50 秒，`power3.out`。字是从前半句末尾的标点后面「钻」出来的：盒子左边缘就是前半句的右边缘，字在盒外看不见，进盒才可见，不逐字、不淡入。
- 后半句落定：2.00 秒。之后 2.00 – 4.00 秒共 2.0 秒完全静止，满足「最后一句至少 2 秒」。前半句全程不平移、不缩放。
- 没有退场，片尾停在完整句子上。
- 运动模糊：根元素 `data-motion-blur="on"`，`data-motion-blur-shutter="45"`，只有两处快速位移会带拖影，落定帧完全清晰。

## 逐拍节拍表
| 拍 | 起止秒 | 画面 | 镜头 | 转场 | 屏幕文案原文 |
| --- | --- | --- | --- | --- | --- |
| first | 0.00 – 0.55 | 0.1 秒前只有底色；前半句从遮罩下沿升进来 | 固定 | 无 | 好看的视频， |
| gap | 0.55 – 1.50 | 前半句完全静止，右边留着空位 | 固定 | 无 | 好看的视频， |
| second | 1.50 – 2.00 | 后半句强调色，遮罩从左往右推进，前半句纹丝不动 | 固定 | 无 | 好看的视频，照着抄就行。 |
| rest | 2.00 – 4.00 | 整句静止 | 固定 | 无 | 好看的视频，照着抄就行。 |

英文版屏幕文案：前半句 `Good-looking video? `（结尾带一个空格），后半句 `Copy a good one.`。已把变量默认值临时改成英文跑过门禁截帧（测完改回）：字号 83px，整句横跨约 218–1702px（宽约 1484px，不超过 1560px），3.0 秒时两句之间空格保留，前半句在 1.0 秒与 3.0 秒的位置一致，后半句强调色。

## 参数接线
全部参数都是 `project/compositions/complete.html` 根元素 `data-composition-variables` 里的变量。用户的 AI 在 `project/index.html` 里 `id="complete"` 的挂载元素上写 `data-variable-values='{"firstHalf":"Good-looking video? ","secondHalf":"Copy a good one."}'`（JSON）来覆盖：
- firstHalf（好看的视频，）：前半句，带着结尾标点；英文要在末尾留一个空格。
- secondHalf（照着抄就行。）：后半句。
- accentColor（#F2B544）、bg（#0E0E10）、ink（#F4F4F2）。
- fontSize（128）：最大字号，实际字号 = min(fontSize, floor(1560 / 估算宽度))，估算宽度按字符算：中文字和全角标点每个 1 em，英文字母每个 0.56 em，空格每个 0.25 em。中文版估算 12 em，算出 130，取 128；英文版 31 个字母和标点各 0.56 em、5 个空格各 0.25 em，共约 18.6 em，算出 83px。
- firstAt（0.1）、firstDuration（0.45）、firstEase（power4.out）。
- holdGap（0.95）：前半句落定到后半句开始的停顿，范围 0.9–1.2。
- pushDuration（0.5）、pushEase（power3.out）。
后半句开始时刻 = firstAt + firstDuration + holdGap，默认 1.50 秒。总时长 4 秒写在 `index.html` 和 `complete.html` 里的 `data-duration`，改停顿后想保证最后一句停够 2 秒，可以一起改。`index.html` 里的底色 `#0E0E10` 是写死的兜底色，换底色时 `bg` 变量和它一起改。运动模糊快门写在 `index.html` 根元素。

## 禁用项
前半句为了让位而平移、后半句逐字打出、省略号、下划线或空框占位、淡入淡出、缩放、弹跳回弹、发光描边渐变字、小标签和注释、呼吸漂浮循环。

## 已知取舍
- `first_frame_empty`：第 0 帧只有底色，这是入场起点；封面取 3.0 秒（整句完整）。
- 前半句字体子集只含默认中英文文案用到的字，换成别的中文文案后要重新跑门禁，让它补上新字。
- 停留时长比手册「字数 × 0.25 秒」略短：前半句实际可读约 1.2 秒、整句约 2.5 秒，这是 BRIEF 指定 0.9–1.2 秒停顿的结果，门禁没报 line_unread。
- 整句视觉中心略偏左约 30px：中文全角句号和逗号字面靠左，右边带空白，按字盒居中，保留不修。
- 后半句遮罩盒的左缘是一道硬切边，推进时能看到字被它切掉，这是遮罩推入本身的样子，也是 BRIEF 要的。
```
