# Shrink to Slogan (字标收小让位)

A big wordmark holds a beat, shrinks and moves up, a slogan rises halfway through, and the pair settles into a still stacked end card; for the last seconds of any film.

- Ref: `video/motion-outro-shrink-to-slogan` (code video · motion · any · any · 4.5s at 30fps)
- Page: https://uifino.com/en/videos/motion-outro-shrink-to-slogan
- Markdown: https://uifino.com/md/videos/motion-outro-shrink-to-slogan.md
- Preview image: https://uifino.com/videos/motion-outro-shrink-to-slogan/poster.jpg

## Install

- ZIP: https://uifino.com/videos/motion-outro-shrink-to-slogan/source.zip

A big wordmark holds a beat, shrinks and moves up, a slogan rises halfway through, and the pair settles into a still stacked end card; for the last seconds of any film.

Rendered video: https://uifino.com/videos/motion-outro-shrink-to-slogan/preview.mp4

## Beats

- 0-0.8s Let the wordmark land: Wordmark at 360 px, centered, fully still Camera: static. On-screen text: "UIFino".
- 0.8-1.6s Hierarchy change: Wordmark shrinks to 120 px and moves up 64 px, power3.inOut; slogan rises 24 px at 1.2 s Camera: static. On-screen text: "Design references your AI can copy".
- 1.6-2s Slogan lands: Wordmark in place, slogan finishes on expo.out by 2.0 s Camera: static.
- 2-4.5s Still end card: Stacked, 48 px apart, centered as a group, dead still Camera: static.

## Parameters

- `hold` Hold before shrinking: default 0.8s, range 0.4 to 1.2s
- `shrinkDuration` Shrink duration: default 0.8s, range 0.6 to 1.2s
- `shrinkEase` Shrink ease: default power3.inOut
- `startSize` Opening wordmark size: default 360px, range 240 to 480px
- `endSize` Final wordmark size: default 120px, range 80 to 160px
- `gap` Wordmark to slogan gap: default 48px, range 24 to 96px
- `sloganSize` Slogan size: default 64px, range 36 to 80px
- `sloganAt` Slogan start (share of the shrink): default 0.5, range 0.3 to 0.7
- `sloganRise` Slogan rise distance: default 24px, range 12 to 48px
- `sloganDuration` Slogan rise duration: default 0.8s, range 0.5 to 1s
- `sloganEase` Slogan ease: default expo.out

## Good for

- Brand sign-off at the end of a film
- End card with a wordmark and one slogan
- Works for Chinese and English single-line slogans

## Not for

- End cards that need a URL, button or several lines
- Wordmarks that should shrink into a corner badge

## Source files (plain text)

- https://uifino.com/videos/motion-outro-shrink-to-slogan/source/SPEC.md
- https://uifino.com/videos/motion-outro-shrink-to-slogan/source/PROMPT.md
- https://uifino.com/videos/motion-outro-shrink-to-slogan/source/NOTICE.md
- https://uifino.com/videos/motion-outro-shrink-to-slogan/source/project/assets/fonts/OFL.txt
- https://uifino.com/videos/motion-outro-shrink-to-slogan/source/project/compositions/outro.html
- https://uifino.com/videos/motion-outro-shrink-to-slogan/source/project/hyperframes.json
- https://uifino.com/videos/motion-outro-shrink-to-slogan/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.2 KB |
| SPEC.md | doc | 4.7 KB |

### PROMPT.md

```md
# PROMPT：motion-outro-shrink-to-slogan

## 照抄复刻
用 `/hyperframes` 做一个 1920×1080、30 fps、4.5 秒的结尾动效，底色 `#E8E6E1`，只有一个字标和一句口号，没有任何其他元素。

做法：
1. 字标「UIFino」：Hanken Grotesk 700，字号 120、字距 -0.02em、行高 1（盒高 120px），水平居中。口号「给 AI 照抄的设计参考」：Noto Sans SC 500，字号 64、行高 80px（盒高 80px），色 `#6E6C66`，其中「AI」染强调色 `#2F5BFF`。字标色 `#1C1C1A`。
2. 最终排布：字标盒 + 间距 48px + 口号盒 = 248px，整体垂直居中，字标盒 416–536，口号盒 584–664。把两者包进一个加 `data-endcard` 的容器。
3. 0.0–0.8 秒：字标放大 3 倍（相当于 360px），中心在画面正中（相对最终位置下移 64px），完全静止，第 0 帧就是满的。
4. 0.8–1.6 秒：字标 `scale` 3 → 1、`y` 64 → 0，一个 tween，`power3.inOut`，0.8 秒。不旋转，不弹跳。
5. 1.2 秒（收小进行到一半）：口号开始升起，`y` 24 → 0，`opacity` 0 → 1，`expo.out`，0.8 秒，整句一起出现，不逐字。
6. 2.0–4.5 秒：整个组合完全静止，不退场，不呼吸，不缩放。

需要替换的地方：
- 字标文字 `brand`、口号 `tagline`、口号里要染色的词 `accentWord`（必须出现在口号里）。英文：`Design references your AI can copy`，强调词 `AI`。
- 颜色：`bg`、`ink`、`muted`、`accent`。
- 数字：`hold`（0.8）、`shrinkDuration`（0.8）、`shrinkEase`（power3.inOut）、`startSize`（360）、`endSize`（120）、`gap`（48）、`sloganSize`（64）、`sloganAt`（0.5）、`sloganRise`（24）、`sloganDuration`（0.8）、`sloganEase`（expo.out）。居中位置由代码按这些数字自动重算。
- 字体用本地 `@font-face` 指向 `assets/fonts/`，不要联网取字体。

## 只学手法
大字标先停 0.8 秒，再用 0.8 秒（power3.inOut）从 360px 收到 120px 并上移 64px；收小到一半时（1.2 秒）口号从下方 24px 升起（expo.out，0.8 秒）；最后字标和口号上下间距 48px、整体居中，静止 2.5 秒。不旋转、不弹跳、口号不逐字。
```

### SPEC.md

```md
# SPEC：motion-outro-shrink-to-slogan

## LOOK
- 色值：底 `#E8E6E1`，字标和主字 `#1C1C1A`，次要字 `#6E6C66`，线 `#D3D0C8`（变量里保留，本条画面不画线），强调色 `#2F5BFF`（只染口号里的「AI」，面积远小于 1%）。中性色 4 个。
- 字体：字标用 Hanken Grotesk（`assets/fonts/hanken-grotesk.woff2`），口号中文用 Noto Sans SC（`assets/fonts/noto-sans-sc.woff2`），口号里的西文字母也走 Hanken Grotesk。两个族，字体子集由门禁生成。
- 字号：两档。字标 120px（字重 700，字距 -0.02em，行高 1，盒高 120px）；口号 64px（字重 500，行高 80px，盒高 80px）。开场的 360px 是把 120px 的字标放大 3 倍得到，不是第三档字号。
- 圆角、阴影、线条、背景装饰：全部没有。
- 位置：最终组合 = 字标盒 120 + 间距 48 + 口号盒 80 = 248px，垂直居中，上边 `(1080 - 248) / 2 = 416px`。字标盒 416–536，口号盒 584–664，水平居中。字标盒中心 y = 476。
- 开场：字标放大到 3 倍（120 × 3 = 360px），中心在画面正中（y = 540），所以相对最终位置下移 `540 - 476 = 64px`。

## MOTION
- 0.0–0.8 秒：字标 360px，居中，完全静止，第 0 帧就是满的。
- 0.8–1.6 秒：字标 `scale` 3 → 1，同时 `y` 64 → 0，一个 tween，`power3.inOut`，0.8 秒，不旋转、不弹跳。
- 口号：在收小进行到一半（0.8 + 0.8 × 0.5 = 1.2 秒）开始，`y` 24 → 0，`opacity` 0 → 1，`expo.out`，0.8 秒，2.0 秒落定。整句一起出现，不逐字。
- 2.0–4.5 秒：整个组合静止，共 2.5 秒，没有任何 tween。
- 字标不退场，口号不退场，结尾卡到最后一帧。
- 不加运动模糊（缩放 0.8 秒、速度不快）。

## 逐拍节拍表
| 拍 | 起止秒 | 画面 | 镜头 | 转场 | 屏幕文案原文 |
| --- | --- | --- | --- | --- | --- |
| hold | 0.0 - 0.8 | 字标 360px 居中静止 | 固定 | 无 | UIFino |
| shrink | 0.8 - 1.6 | 字标收到 120px 并上移 64px；1.2 秒口号开始升起 | 固定 | 无 | UIFino / 给 AI 照抄的设计参考 |
| settle | 1.6 - 2.0 | 字标到位，口号 expo.out 收尾 | 固定 | 无 | 同上 |
| end | 2.0 - 4.5 | 上下结构，间距 48px，整体居中，完全静止 | 固定 | 无 | 同上 |

英文版：「UIFino / Design references your AI can copy」，`tagline` 填英文，`accentWord` 填 `AI`。英文口号 64px 约 1000px 宽，单行放得下；已临时切到英文跑过 `--at=2.5`。

## 参数接线
全部是 `project/compositions/outro.html` 根元素上的 `data-composition-variables`，用户的 AI 在 `index.html` 的挂载处用 `data-variable-values` 覆盖。

| 变量 | 默认 | 范围 | 改了哪里变 |
| --- | --- | --- | --- |
| brand | UIFino | 文本 | 字标文字 |
| tagline | 给 AI 照抄的设计参考 | 文本 | 口号文字 |
| accentWord | AI | 必须是口号里出现的一段文字 | 口号里染强调色的词，找不到就不染 |
| bg / ink / muted / accent | #E8E6E1 / #1C1C1A / #6E6C66 / #2F5BFF | 颜色 | 底色、字标色、口号色、强调词色 |
| hold | 0.8 | 0.4–1.2 秒 | 字标先停多久，口号和收小的起点跟着移 |
| shrinkDuration | 0.8 | 0.6–1.2 秒 | 收小用时 |
| shrinkEase | power3.inOut | GSAP 缓动名 | 收小的缓动 |
| startSize / endSize | 360 / 120 | px | 开场字标字号、最终字标字号；放大倍数 = startSize / endSize |
| gap | 48 | px | 字标盒与口号盒的间距，居中位置自动重算 |
| sloganSize | 64 | px | 口号字号，口号盒高 = 字号 × 1.25 |
| sloganAt | 0.5 | 0.3–0.7 | 口号在收小进度的几分之几升起 |
| sloganRise | 24 | px | 口号起点下移量 |
| sloganDuration | 0.8 | 0.5–1.0 秒 | 口号升起用时 |
| sloganEase | expo.out | GSAP 缓动名 | 口号的缓动 |

总时长 4.5 秒由 `index.html` 和 `outro.html` 的 `data-duration` 决定，不是变量；静止时长 = 4.5 − (hold + shrinkDuration × sloganAt + sloganDuration)，改了前面的参数要留够至少 2 秒。

## 禁用项
字标旋转或弹跳、口号逐字出现、字标收到角落变成角标、辉光、渐变、线条装饰、小标签、落定后的任何缩放或漂移、点击光圈、呼吸循环。

## 已知取舍
- 口号用 opacity 加 24px 上移入场，是 BRIEF 明确要求的「从下方 24px 升起」；只有这一个元素这样入场，位移只有 24px、0.8 秒长尾，没有叠别的效果。
- 口号 `#6E6C66` 在底色上对比度约 4.2:1，低于 4.5:1。口号是 64px、字重 500 的大字，按大字标准（3:1）足够，保留配色。
- 门禁警告 `cream-palette`（米色底）：底色 `#E8E6E1` 是 BRIEF 指定的 stone 配色，整套配色来自参考片，保留。
```
