# Question Stack (三问连抛)

Three short questions rise in one after another, gaps of 1.1 s then 0.8 s so it speeds up; each earlier line dims to 35% and stays put, so only the newest is fully lit. For opening a launch film with a run of pain points.

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

## Install

- ZIP: https://uifino.com/videos/motion-text-question-stack/source.zip

Three short questions rise in one after another, gaps of 1.1 s then 0.8 s so it speeds up; each earlier line dims to 35% and stays put, so only the newest is fully lit. For opening a launch film with a run of pain points.

Rendered video: https://uifino.com/videos/motion-text-question-stack/preview.mp4

## Beats

- 0-1.4s Throw the first question: Ground only until 0.3 s; the first line rises 24 px and holds Camera: static. On-screen text: "Need a launch film?".
- 1.4-2.2s Second question, faster: The second line rises in, the first dims to 35% and stays Camera: static. On-screen text: "No storyboard?".
- 2.2-2.65s Third question, faster still: The third line rises in, the second dims to 35%, the first stays at 35% Camera: static. On-screen text: "No time to start from zero?".
- 2.65-5s Let the viewer read: All three lines stay fully still for 2.35 s Camera: static.

## Parameters

- `line1` First line: default 要做发布片？
- `line2` Second line: default 不会分镜？
- `line3` Third line: default 没时间从零做？
- `bg` Background: default #E8E6E1
- `ink` Text color: default #1C1C1A
- `fontSize` Max font size: default 120px, range 64 to 160px
- `firstAt` First line start: default 0.3s, range 0 to 1s
- `gap2` Gap from line 1 to 2: default 1.1s, range 0.6 to 1.6s
- `gap3` Gap from line 2 to 3: default 0.8s, range 0.4 to 1.4s
- `rise` Rise distance: default 24px, range 8 to 64px
- `enterDuration` Entrance duration: default 0.45s, range 0.3 to 0.8s
- `enterEase` Entrance ease: default power3.out
- `dimOpacity` Earlier lines opacity: default 0.35, range 0.2 to 0.6
- `dimDuration` Dim duration: default 0.45s, range 0.2 to 0.8s

## Good for

- Opening with three pain points or questions
- Each line about 4 to 8 Chinese characters, or 3 to 6 English words
- A launch-film opening that should tighten as it goes

## Not for

- Long lines meant to be read in one go
- Lists of more than three lines
- When you want a typewriter effect

## Source files (plain text)

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

### PROMPT.md

```md
# PROMPT：motion-text-question-stack

## 照抄复刻
用 `/hyperframes` 做一条 1920×1080、30 fps、5 秒的动效：浅灰底上连抛三个短问题，一句比一句快，前一句变淡但留在原处，只有最新一句是全亮的。

1. 画面：底色 `#E8E6E1`，字色 `#1C1C1A`，纯色背景，没有任何其他元素。字体用本地 `@font-face`：西文 IBM Plex Sans，中文 Noto Sans SC。一档字号 120px，字重 600，字距 -0.01em，行高 1.3。字号按最长一句缩：估算宽度 em = 中文字和全角标点每个 1 + 英文字母每个 0.56 + 空格每个 0.25，字号 = min(120, floor(1440 / 最长一句的 em))，三句共用。
2. 版式：三句左对齐，放进一个左边距 240px、宽 1440px、高 1080px 的竖向 flex 栏，垂直居中。三行从第 0 帧起就在布局里（透明），所以新句出现时旧句不会被挤动。
3. 入场：每句从下方 24px 升到原位，同时不透明度 0 到 1，0.45 秒，`power3.out`。
4. 节奏：第一句 0.30 秒起；第二句在第一句之后 1.10 秒；第三句在第二句之后 0.80 秒（即 1.40 秒和 2.20 秒）。
5. 让位：新句开始入场的同一时刻，上一句不透明度 1 到 0.35，0.45 秒，`power2.out`，不移动。更早的句子保持 0.35。
6. 第三句 2.65 秒落定，之后完全静止到 5 秒。
7. 禁止：问号放大或变色、三句同时出现、图标、编号、旧句移出画面。

需要替换的地方（在 `index.html` 里 `id="questions"` 的挂载元素上写 `data-variable-values='{"line1":"Need a launch film?","line2":"No storyboard?","line3":"No time to start from zero?"}'` 传入；换成别的汉字后要重新生成字体子集，否则缺字）：
- 三句文案 `line1`、`line2`、`line3`（默认「要做发布片？」「不会分镜？」「没时间从零做？」）。
- 颜色：`bg`、`ink`。
- 字号上限 `fontSize`。
- 时间：`firstAt`、`gap2`（1.1）、`gap3`（0.8）。
- 动作：`rise`（24）、`enterDuration`（0.45）、`enterEase`（power3.out）、`dimOpacity`（0.35）、`dimDuration`（0.45）。
- 不要加产品界面和其他文字。

## 只学手法
三句短问话每句从下方 24px 升入（0.45 秒，`power3.out`），间隔 1.1 秒、0.8 秒越来越快；上一句同时变淡到 35% 并留在原处，永远只有最新一句全亮，第三句后静止。
```

### SPEC.md

```md
# SPEC：motion-text-question-stack

## LOOK
- 色值（中性色 2 个，强调色 0 个）：底 `#E8E6E1`，字色 `#1C1C1A`。BRIEF 里的次要字 `#6E6C66`、线 `#D3D0C8`、强调色 `#2F5BFF` 没有用到：画面只有三句问话，没有次要文字，不画线；问号不许变色，强调色没有落脚处。旧句子的灰色来自 35% 不透明度叠在底色上，不是单独的色值。
- 字体：西文 IBM Plex Sans（`assets/fonts/ibm-plex-sans.woff2`），中文 Noto Sans SC（`assets/fonts/noto-sans-sc.woff2`），本地 `@font-face`，门禁按用到的字生成子集，OFL 许可。西文排前，中文兜底。
- 字号：一档，最大 120px，字重 600，字距 -0.01em，行高 1.3（行距 156px）。字号按最长的一句自动缩小，保证最长一句不超过 1440px 宽：估算宽度 em = 中文字和全角标点每个 1 + 英文字母每个 0.56 + 空格每个 0.25，字号 = min(120, floor(1440 / 最长一句的 em))。中文版最长一句约 7 em，取 120px；英文版最长一句约 13.4 em，算出 107px。三句共用同一个字号。
- 圆角、阴影、渐变、线条、图标、编号：全部没有。背景是纯色。
- 版式：三句左对齐，左边距 240px，三行在一个 1440×1080 的竖向 flex 栏里垂直居中，三行从第 0 帧起就占着位置（只是透明），所以新句出现时旧句位置不变。中文版块高 468px，第一句字落在 y ≈ 330–440。

## MOTION
- 入场：新句从下方 24px 升到原位，同时不透明度 0 到 1，0.45 秒，`power3.out`。
- 让位：新句开始入场的同一时刻，上一句不透明度从 1 到 0.35，0.45 秒，`power2.out`，留在原位不移动。更早的句子保持 0.35。任何时候只有最新一句是全亮。
- 节奏：第一句 0.30 秒起；第二句在第一句之后 1.10 秒（1.40 秒）；第三句在第二句之后 0.80 秒（2.20 秒）。第三句 2.65 秒落定，之后 2.35 秒完全静止到片尾。
- 没有退场，没有运动模糊，问号不放大不变色。

## 逐拍节拍表
| 拍 | 起止秒 | 画面 | 镜头 | 转场 | 屏幕文案原文 |
| --- | --- | --- | --- | --- | --- |
| first | 0.00 – 1.40 | 0.30 秒前只有底色；第一句升入并停住 | 固定 | 无 | 要做发布片？ |
| second | 1.40 – 2.20 | 第二句升入，第一句让位到 35% | 固定 | 无 | 要做发布片？ / 不会分镜？ |
| third | 2.20 – 2.65 | 第三句升入，第二句让位到 35%，第一句仍是 35% | 固定 | 无 | 要做发布片？ / 不会分镜？ / 没时间从零做？ |
| rest | 2.65 – 5.00 | 三句完全静止 | 固定 | 无 | 要做发布片？ / 不会分镜？ / 没时间从零做？ |

英文版屏幕文案：Need a launch film? / No storyboard? / No time to start from zero?。已临时用 `data-variable-values` 传入英文跑过截帧，三句左对齐、字号缩到约 107px、最长一句右端约 1545px，没有溢出；测完已改回。

## 参数接线
全部参数都是 `project/compositions/questions.html` 根元素 `data-composition-variables` 里的变量。用户的 AI 在 `project/index.html` 里 `id="questions"` 的挂载元素上写 `data-variable-values='{"line1":"Need a launch film?","line2":"No storyboard?","line3":"No time to start from zero?"}'`（JSON）来覆盖：
- line1、line2、line3：三句文案。换成别的汉字后要重跑门禁，字体子集才会补上新字。
- bg（#E8E6E1）：底色。`index.html` 里的 `#E8E6E1` 是写死的兜底色，换底色时一起改。
- ink（#1C1C1A）：字色。
- fontSize（120）：最大字号，实际字号见 LOOK。
- firstAt（0.3）：第一句入场起点。
- gap2（1.1）：第一句到第二句的间隔；gap3（0.8）：第二句到第三句的间隔。
- rise（24）：升入距离，px。
- enterDuration（0.45）、enterEase（power3.out）：入场时长和缓动。
- dimOpacity（0.35）、dimDuration（0.45）：旧句让位后的不透明度和让位时长（缓动固定 `power2.out`，写在脚本里）。
总时长 5 秒写在 `index.html` 和宿主元素的 `data-duration`，变量改不了它。

## 禁用项
问号放大或变色、三句同时出现、图标、编号、旧句移出画面、逐字打出、弹跳回弹、发光描边渐变字、小标签和注释、呼吸漂浮循环、强调色块。

## 已知取舍
- `first_frame_empty`：第 0 帧只有底色，这是入场起点（0.30 秒前）；封面取 4 秒，三句都在。
- `line_unread`（第一、二句）：检查器把「让位变淡」当成「离开」，所以说第一句只停留 1.2 秒、第二句 0.91 秒。这两句只是变淡到 35%，仍在画面上，读得完；间隔 1.1 / 0.8 秒是 BRIEF 规定的节奏，不改。
- `cream-palette`（impeccable）：底色 `#E8E6E1` 是 BRIEF 指定的 stone 配色，按指定保留。
- 画面偏朴素：整条只有字和纯色，是这个手法本身的样子，用来放进有产品界面的片子里。
```
