# Status Word Flip (状态词翻转)

The task name never moves; while waiting only the dots under it grow every 0.3 s, then the status word rolls vertically into the accent-colored Done. For showing progress through a state change.

- Ref: `video/motion-text-status-flip` (code video · motion · launch, feature, changelog · any · 4s at 30fps)
- Page: https://uifino.com/en/videos/motion-text-status-flip
- Markdown: https://uifino.com/md/videos/motion-text-status-flip.md
- Preview image: https://uifino.com/videos/motion-text-status-flip/poster.jpg

## Install

- ZIP: https://uifino.com/videos/motion-text-status-flip/source.zip

The task name never moves; while waiting only the dots under it grow every 0.3 s, then the status word rolls vertically into the accent-colored Done. For showing progress through a state change.

Rendered video: https://uifino.com/videos/motion-text-status-flip/preview.mp4

## Beats

- 0-1.5s Let the viewer read the task name and feel it is still running: Task name still; the dots after the grey-green status word change every 0.3 s, cycling 1, 2, 3, 1, 2 Camera: static. On-screen text: "Launch film, thirty seconds / Rendering…".
- 1.5-1.85s One flip announces completion: The strip in the status window rolls up 128 px, power2.inOut, 0.35 s, with a 6 px blur peak; the old word leaves, the accent-colored one arrives Camera: static. On-screen text: "Launch film, thirty seconds / Done".
- 1.85-4s Final hold: Fully still to the end, no flash and no icon Camera: static.

## Parameters

- `taskName` Task name: default 三十秒发布片
- `waitText` Waiting word: default 生成中
- `doneText` Finished word: default 已完成
- `accentColor` Accent color: default #7FD99A
- `ink` Task name color: default #ECF2EE
- `muted` Waiting word color: default #8FA096
- `lineColor` Rule color: default #1F2B24
- `bg` Background: default #0F1712
- `nameSize` Max task name size: default 120px, range 64 to 160px
- `dotStep` Seconds per dot: default 0.3s, range 0.2 to 0.4s
- `flipAt` Flip start: default 1.5s, range 1.2 to 2.1s
- `flipDuration` Flip duration: default 0.35s, range 0.3 to 0.45s
- `flipEase` Flip ease: default power2.inOut

## Good for

- Showing one task going from working to done
- Launch films and changelogs that explain progress in one word
- Status words of 2 to 4 Chinese characters or one short English word

## Not for

- Anything that needs exact progress such as a bar or percentage
- Lists where many tasks update at once
- Moments that call for a celebration effect

## Source files (plain text)

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

### PROMPT.md

```md
# PROMPT：motion-text-status-flip

## 照抄复刻
用 `/hyperframes` 做一条 1920×1080、30 fps、4 秒的动效：任务名固定在上方，下方的状态词从「生成中…」翻成「已完成」。

1. 画面：底色 `#0F1712`；任务名 `#ECF2EE`、120px、字重 600、字距 -0.01em、行高 144px；分隔线 `#1F2B24`，2px 高、1440px 宽；状态词 96px、字重 600、行高 128px，等待时 `#8FA096`，完成后 `#7FD99A`。西文用 Hanken Grotesk，中文用 Noto Sans SC，本地 `@font-face`。没有图标、进度条、边框、圆角。
2. 版式：所有内容左端 x=240px、宽 1440px。任务名框 top 347 高 144；分隔线 top 547；状态窗口 top 605 高 128。整组竖向居中。任务名太长时字号 = min(120, floor(144000 / 任务名在 100px 下的宽度))，要等字体加载完再量。
3. 文案：「三十秒发布片」，「生成中」加省略点，「已完成」。英文：Launch film, thirty seconds / Rendering… / Done。
4. 节拍：0 – 1.5 秒等待，省略点用三个句点字符，每 0.3 秒变一次，点数 1、2、3、1、2 循环（0.0 秒 1 个，0.3 秒 2 个，0.6 秒 3 个，0.9 秒 1 个，1.2 秒 2 个），没出现的点只是透明，不影响状态词位置；1.5 – 1.85 秒翻转；1.85 – 4.0 秒完全静止。任务名和分隔线从第 0 帧起不动，没有入场。
5. 翻转：状态窗口是高 128px、`overflow: hidden` 的遮罩，里面竖排两行，「生成中…」在上，「已完成」在下，整条带子上移 128px，0.35 秒，`power2.inOut`。同时给带子加 CSS 模糊：前 0.175 秒 `blur(0px)` 到 `blur(6px)`（`power2.out`），后 0.175 秒回到 0（`power2.in`）。颜色靠两行各自的颜色，不另做颜色动画。时间线里所有 fromTo 都加 `immediateRender: false`。
6. 禁止：进度条或百分比、转圈图标、勾选图标、完成时闪光或撒花、任务名动画、其他装饰。

需要替换的地方（在 `index.html` 里 `id="flip"` 的挂载元素上写 `data-variable-values` 传入；换别的中文词后要重新生成字体子集，否则缺字）：
- 文案：`taskName`、`waitText`、`doneText`。
- 颜色：`accentColor`、`ink`、`muted`、`lineColor`、`bg`。
- 时间：`dotStep`（0.3）、`flipAt`（1.5）、`flipDuration`（0.35）、`flipEase`（power2.inOut）、`nameSize`（120）。

## 只学手法
任务名钉死不动，状态词所在的 128px 高窗口里竖排「等待」「完成」两行；等待时只让省略点每 0.3 秒多一个，1.5 秒后整条带子上移 128px，0.35 秒 `power2.inOut`，带 6px 峰值的模糊，强调色只给完成那一行。
```

### SPEC.md

```md
# SPEC：motion-text-status-flip

## LOOK
- 色值（中性色 4 个，强调色 1 个）：底 `#0F1712`，任务名 `#ECF2EE`，等待状态词 `#8FA096`，分隔线 `#1F2B24`，强调色 `#7FD99A`（只给「已完成」三个字，面积远低于 10%）。
- 字体：西文 Hanken Grotesk（`assets/fonts/hanken-grotesk.woff2`），中文 Noto Sans SC（`assets/fonts/noto-sans-sc.woff2`），本地 `@font-face`，西文在前、中文兜底。全片字重 600，字距 -0.01em。
- 字号（2 档）：任务名 120px（行高 144px）；状态词 96px（行高 128px）。任务名超长时自动缩小，见 MOTION。`#fl-name` 的 CSS 里已写 `font-size: 120px`，脚本只在需要缩小时才覆盖。
- 圆角：无。阴影：无。渐变：无。图标：无。
- 版式：左端 x = 240px，内容宽 1440px。从上到下：任务名框 top 347 高 144；留 56px；分隔线 top 547 高 2px、宽 1440px；留 56px；状态窗口 top 605 高 128。整组上沿 347、下沿 733，竖向居中在 y = 540。
- 屏幕文案：「三十秒发布片」，「生成中」加省略点，「已完成」。省略点用三个句点字符，每个字距 0.08em。

## MOTION
- 只有两种动：省略点计数，状态词纵向翻转。任务名、分隔线、背景从第 0 帧起完全不动，没有入场。
- 等待阶段 0 – 1.5 秒：省略点每 0.3 秒加一个，1、2、3 个循环。0.0 秒 1 个，0.3 秒 2 个，0.6 秒 3 个，0.9 秒回到 1 个，1.2 秒 2 个，1.5 秒翻转开始。三个点各占固定位置，没显示的点只是透明，状态词本身不会因为点数变化而挪位。点是直接切换，不做淡入。
- 翻转 1.5 – 1.85 秒，共 0.35 秒，缓动 `power2.inOut`：状态窗口是高 128px、`overflow: hidden` 的遮罩，里面竖排两行（「生成中…」「已完成」），整条带子向上移 128px，旧词从上沿滚出，新词从下沿滚进。同时给带子加 CSS 模糊，前半段 0.175 秒 `blur(0px)` 到 `blur(6px)`（`power2.out`），后半段回到 `blur(0px)`（`power2.in`），最糊的一帧就是滚得最快的一帧。
- 换色：不单独做颜色动画。灰绿色的一行滚出，强调色的一行滚入，颜色是跟着行换的，只在翻转这一刻出现。
- 完成后 1.85 – 4.0 秒（2.15 秒）完全静止，没有闪光、撒花、勾选图标。
- 自动排版：任务名在 100px 下量宽 w，字号 = min(nameSize, floor(144000 / w))，保证一行不超过 1440px。中文默认值算出来是 120。英文 Launch film, thirty seconds 已实测：成片里文字右缘约 x=1676（左端 240），没有超出 1440px 宽的框，状态词「Rendering..」「Done」都放得下。
- 时间线要等字体加载完才注册（要先量字宽），代码里用 document.fonts.load 的 Promise。

## 逐拍节拍表
| 拍 | 起止秒 | 画面 | 镜头 | 转场 | 屏幕文案原文 |
| --- | --- | --- | --- | --- | --- |
| wait | 0.00 – 1.50 | 任务名静止，下方灰绿状态词后面的点 1、2、3、1、2 个循环，每 0.3 秒一变 | 固定 | 无 | 三十秒发布片 / 生成中… |
| flip | 1.50 – 1.85 | 「生成中…」向上滚出，强调色的「已完成」从下面滚进 | 固定 | 无 | 三十秒发布片 / 已完成 |
| done | 1.85 – 4.00 | 完全静止 | 固定 | 无 | 三十秒发布片 / 已完成 |

英文版：Launch film, thirty seconds / Rendering… → Done。

## 参数接线
全部参数都是 `project/compositions/flip.html` 根元素 `data-composition-variables` 里的变量。用户的 AI 在 `project/index.html` 里 `id="flip"` 的挂载元素上加 `data-variable-values='{"taskName":"Launch film, thirty seconds","waitText":"Rendering","doneText":"Done"}'` 覆盖：
- taskName（三十秒发布片）、waitText（生成中，点由代码自己加）、doneText（已完成）。
- accentColor（#7FD99A）、ink（#ECF2EE）、muted（#8FA096）、lineColor（#1F2B24）、bg（#0F1712）。
- nameSize（120）：任务名最大字号，实际会按 1440px 宽度缩小。
- dotStep（0.3）：每个点的间隔，秒。
- flipAt（1.5）：翻转起点，秒；建议是 dotStep 的整数倍，等待阶段才是整数个点。
- flipDuration（0.35）：翻转时长，秒，BRIEF 要求 0.35。
- flipEase（power2.inOut）：翻转缓动。
总时长 4 秒写在 `index.html` 和 `flip.html` 的 `data-duration`，要改就一起改。`index.html` 里的底色 `#0F1712` 是写死的兜底色，换底色时和 `bg` 变量一起改。位置数字（240、347、547、605、128）和状态词字号 96px 是写死在 `flip.html` 样式里的常量。换成别的中文词后必须重跑门禁生成字体子集。

## 禁用项
进度条、百分比、转圈加载图标、勾选图标、完成时闪光或撒花、任务名动画、弹跳、呼吸漂浮、小标签和注释、第二种强调色。

## 已知取舍
- 前 1.5 秒和最后 2.15 秒里，只有点在变或完全不动，是 BRIEF 要求的「等待只动省略点」。
- 开场第一帧就是完整画面，没有入场动效，因为 BRIEF 要求任务名全程不动。poster 取 3 秒（完成后的完整画面）。
- 状态词 96px 比任务名 120px 小一档，任务名当主角、状态词当次要信息；字号只有两档。
- 分隔线 `#1F2B24` 落在 `#0F1712` 底上对比度约 1.2:1，成片里只是一道若有若无的细线，色值是 BRIEF 指定的，它只作轻微分区。
- 滚动中的字被窗口上下沿切掉，是遮罩翻转本身的样子，不算裁字。
- 状态带比窗口高，hf-check 的溢出提示已用 data-layout-allow-overflow 标在带子上。
```
