# Mask Slam Headline (遮罩重击大字)

A short line bursts out of a mask in 0.3 s, overshoots once, locks in and stays dead still; for the most forceful claim in a launch film.

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

## Install

- ZIP: https://uifino.com/videos/motion-text-mask-slam/source.zip

A short line bursts out of a mask in 0.3 s, overshoots once, locks in and stays dead still; for the most forceful claim in a launch film.

Rendered video: https://uifino.com/videos/motion-text-mask-slam/preview.mp4

## Beats

- 0-0.5s Line breaks out of the mask: Only ground and hairlines until 0.2 s; the whole line bursts up from the mask edge in 0.3 s, back.out(0.9), about 3% overshoot, then settles Camera: static. On-screen text: "Ship it today".
- 0.5-2.75s Let the viewer read: Fully still: no scale, drift or breathing Camera: static.
- 2.75-2.89s Clean exit: The line keeps rising out of the mask, power3.in, 0.14 s (47% of the entrance)
- 2.89-3s Empty tail: Ground and the two hairlines only

## Parameters

- `text` Copy: default 现在就上线
- `accentWord` Accent part: default 上线
- `accentColor` Accent color: default #F2B544
- `bg` Background: default #0E0E10
- `ink` Text color: default #F4F4F2
- `lineColor` Hairline color: default #26262A
- `fontSize` Max font size: default 260px, range 160 to 320px
- `enterAt` Entrance start: default 0.2s, range 0 to 1s
- `enterDuration` Entrance duration: default 0.3s, range 0.25 to 0.35s
- `enterEase` Entrance ease: default back.out(0.9)
- `exitAt` Exit start: default 2.75s, range 2 to 2.85s
- `exitDuration` Exit duration: default 0.14s, range 0.1 to 0.2s
- `exitEase` Exit ease: default power3.in

## Good for

- A single punchy claim in a launch film or ad
- A slogan of 5 to 7 Chinese characters or 2 to 3 short English words
- When you want impact without shake or glow

## Not for

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

## Source files (plain text)

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

### PROMPT.md

```md
# PROMPT：motion-text-mask-slam

## 照抄复刻
用 `/hyperframes` 做一条 1920×1080、30 fps、3 秒的动效：深色底上一句很短的话从遮罩里极快破出，过冲一次就稳住，然后完全静止。

1. 画面：底色 `#0E0E10`；中间一条通栏横带做遮罩，上沿 y=370px、下沿 y=710px，带子上下各一条 2px 细线 `#26262A`；字居中，只有一档字号 260px，字重 800，字距 -0.02em，行高 1，字色 `#F4F4F2`，末尾两个字用强调色 `#F2B544`。字号按字数自动缩：估算宽度 em = 中文每字 0.98 + 英文字母每个 0.56 + 空格每个 0.25，字号 = min(260, floor(1382 / em))，1382px 是画面宽度的 72%。字体用本地 `@font-face`：中文 Noto Sans SC，西文 Schibsted Grotesk。
2. 遮罩：字外面套一个 `overflow: hidden`、高 340px 的容器，字在里面垂直居中。
3. 入场：整行字作为一个整体，0.20 秒起，`yPercent` 从 120 到 0，时长 0.30 秒，缓动 `back.out(0.9)`（过冲约 3%，只过一次）。只动位置，不加透明度、缩放、模糊。
4. 静止：0.50 到 2.75 秒完全不动。
5. 退场：2.75 秒起 `yPercent` 到 -120，`power3.in`，0.14 秒；2.89 到 3.00 秒只剩底色和细线。
6. 根元素加 `data-motion-blur="on"` 和 `data-motion-blur-shutter="45"（90 会在退场拖出叠层重影）`。
7. 禁止：抖动、屏幕震动、发光、描边、渐变字、淡入、第二次回弹。

需要替换的地方（在 `index.html` 里 `id="slam"` 的挂载元素上写 `data-variable-values='{"text":"Ship it today","accentWord":"today"}'` 传入；换中文文案后要重新生成字体子集，否则缺字）：
- 文案 `text`（默认「现在就上线」，英文「Ship it today」）和强调部分 `accentWord`（上线 / today，必须是文案末尾的一段）。字号会按字数自动缩小，保证整行约占画面宽度 66%–72%。
- 颜色：`accentColor`、`bg`、`ink`、`lineColor`。
- 时间和缓动：`enterAt`、`enterDuration`、`enterEase`、`exitAt`、`exitDuration`、`exitEase`。
- 不要加产品界面和其他文字。

## 只学手法
一整行大字从一条遮罩带的下沿外面 0.3 秒冲进来，用 `back.out(0.9)` 只过冲一次（约 3% 位移），冲击感全部来自速度和这一下过冲，过冲只改位置，不改透明度；落定后 2 秒以上一动不动，最后用 0.14 秒 `power3.in` 向上钻出。
```

### SPEC.md

```md
# SPEC：motion-text-mask-slam

## LOOK
- 色值（中性色 4 个，强调色 1 个）：底 `#0E0E10`，字 `#F4F4F2`，两条细线 `#26262A`，强调色 `#F2B544`（琥珀黄，只染「上线」两个字，面积约 4%，远小于 10%）。BRIEF 里的次要字色 `#8A8A8E` 没有用到，因为画面只有一句话，没有次要文字。
- 字体：中文 Noto Sans SC（`assets/fonts/noto-sans-sc.woff2`），西文 Schibsted Grotesk（`assets/fonts/schibsted-grotesk.woff2`），都是本地 `@font-face`，门禁按用到的字自动生成子集，OFL 许可。西文排在前面，中文兜底，中英文各一个族。
- 字号：只有一档，最大 260px，字重 800，字距 -0.02em，行高 1。字号会按字数自动缩小，保证整行宽度约占画面 66%–72%（见下面「自动缩字号」）。
- 圆角：无。阴影：无。渐变：无。
- 版式：整行单行居中。遮罩是一条横带，上沿 y = 370px，下沿 y = 710px，高 340px，通栏 1920px。带子上下各一条 2px 的细线（`#26262A`，上线 y = 370，下线 y = 708），让观众看见字是从哪里破出来的。字落定后视觉中心在 y ≈ 530px。
- 细线是遮罩的边界，不是装饰；去掉后字像是凭空在半空被切开，所以保留。

## MOTION
- 只有一个主动作：整行字作为一个整体，从遮罩下沿外面向上冲进遮罩。
  - 起点 `yPercent: 120`（字整体在遮罩下沿之外，第 0 帧什么字都看不到），终点 `yPercent: 0`。
  - 起始时刻 0.20 秒，时长 0.30 秒，缓动 `back.out(0.9)`。
  - 过冲：回弹最高点比落点高约 3.0%（总位移的 3.0%，约 3.6 个 yPercent，字号 260 时约 9 px），只过一次，然后回到落点。不超过 BRIEF 要求的 4%。
  - 过冲只作用在位置上，没有任何透明度、缩放、模糊或颜色变化。
- 落定后静止：0.50 – 2.75 秒，共 2.25 秒，没有任何 tween（不缩放、不漂移、不呼吸）。BRIEF 要求至少 1.5 秒。
- 退场：2.75 秒起，整行继续向上钻出遮罩上沿，`yPercent: -120`，`power3.in`，0.14 秒（入场 0.30 秒的 47%）。入场向上、退场也向上，一股劲到底。
- 2.89 – 3.00 秒：只剩底色和两条细线。
- 运动模糊：根元素 `data-motion-blur="on"`，`data-motion-blur-shutter="45"`。入场和退场每帧位移超过 100px，模糊按真实位移拖出；快门调到 45（默认更长，90 时退场中段会拖出叠层重影），拖影短而干净，逐帧抽查 2.87 秒附近没有叠层条纹。落定帧完全清晰。
- 自动缩字号：代码按字符估算整行宽度（中文 0.98 em，英文字母 0.56 em，空格 0.25 em），字号 = min(fontSize, floor(1382 / 估算宽度))。1382 是画面宽度的 72%。中文 5 个字估算 4.9 em，算出 282，取 260，实际宽度 1265px（约 66%）。英文 Ship it today 估算 6.66 em，算出 207px，实际宽度约 1227px（约 64%）。

## 逐拍节拍表
| 拍 | 起止秒 | 画面 | 镜头 | 转场 | 屏幕文案原文 |
| --- | --- | --- | --- | --- | --- |
| enter | 0.00 – 0.20 | 只有底色和两条细线 | 固定 | 无 | 无 |
| enter | 0.20 – 0.50 | 整行字从遮罩下沿冲进来，过冲约 3% 后落定 | 固定 | 无 | 现在就上线 |
| hold | 0.50 – 2.75 | 完全静止 | 固定 | 无 | 现在就上线 |
| exit | 2.75 – 2.89 | 整行字向上钻出遮罩 | 固定 | 无 | 现在就上线 |
| clear | 2.89 – 3.00 | 只剩底色和细线 | 固定 | 无 | 无 |

英文版屏幕文案：Ship it today，强调词 today。已临时用 `data-variable-values` 传入英文和另一个强调色，在 1.5 秒截帧确认：字换成英文、强调词变色、整行宽度约 64%。

## 参数接线
全部参数都是 `project/compositions/slam.html` 根元素 `data-composition-variables` 里的变量，用户的 AI 在 `project/index.html` 里 `id="slam"` 那个挂载元素上加 `data-variable-values='{"text":"Ship it today","accentWord":"today"}'`（JSON）来覆盖：
- text（现在就上线）：整句文案，中文 5 到 7 个字，英文 2 到 3 个短词。
- accentWord（上线）：强调部分，必须是文案末尾的一段；找不到时整句都用字色。
- accentColor（#F2B544）、bg（#0E0E10）、ink（#F4F4F2）、lineColor（#26262A）。
- fontSize（260）：最大字号，实际会按字数缩小。
- enterAt（0.2）、enterDuration（0.3）、enterEase（back.out(0.9)）。
- exitAt（2.75）、exitDuration（0.14）、exitEase（power3.in）。
静止时长不是变量，由 exitAt 减去入场结束时刻得到。总时长 3 秒写在 `index.html` 和 `slam.html` 的 `data-duration`，要改就一起改。`index.html` 里的底色 `#0E0E10` 是写死的兜底色，换底色时 `bg` 变量和它要一起改。运动模糊快门写在 `index.html` 根元素。

## 禁用项
抖动（三帧抖）、屏幕震动、发光、描边、渐变字、淡入淡出、缩放入场、弹跳之外的任何第二次回弹、落定后任何移动、小标签和注释、呼吸漂浮循环。

## 已知取舍
- 门禁在这版没有警告。第 0 帧只有底色和细线，这是入场的起点，封面取 1.5 秒（字已落定）。
- 画面文字 5 个字，停留 2.25 秒，高于通则「字数 × 0.25 秒 = 1.25 秒」。
- 运动模糊快门取 45 而不是默认值：默认值和 90 在 0.14 秒的退场上拖影过长，会出现叠层重影，像渲染错误。
- 细线 `#26262A` 与底色对比约 1.3:1，缩略图里几乎看不见。色值是 BRIEF 指定的，保留；遮罩边界靠字被切掉的那条边来读。
- 0 – 0.2 秒和 2.89 – 3.00 秒是空画面（只有底色和细线），是入场起点和收尾，循环播放时会有一小段空档，BRIEF 没要求无缝循环，保留。
- 字体子集只含默认文案「现在就上线」和「Ship it today」用到的字。换成别的中文文案后必须重新跑门禁，让它按新文案生成子集，否则新字会缺字形。
```
