# UI focus pull (界面推近聚焦)

Show the full product screen, then push in on one control while the rest washes out and blurs, so the eye lands on the action being explained.

- Ref: `video/shot-ui-focus-pull` (code video · shot · launch, feature · any · 5s at 30fps)
- Page: https://uifino.com/en/videos/shot-ui-focus-pull
- Markdown: https://uifino.com/md/videos/shot-ui-focus-pull.md
- Preview image: https://uifino.com/videos/shot-ui-focus-pull/poster.jpg

## Install

- ZIP: https://uifino.com/videos/shot-ui-focus-pull/source.zip

Show the full product screen, then push in on one control while the rest washes out and blurs, so the eye lands on the action being explained.

Rendered video: https://uifino.com/videos/shot-ui-focus-pull/preview.mp4

## Beats

- 0-1.2s Establish the whole workspace: Pricing section centred, one small settle
- 1.2-2.4s Bring the eye to the billing toggle: 1.6x push-in on the toggle, 72% white wash and 3px blur outside, only a rounded rectangle stays sharp
- 2.4-5s Give time to read and name the action: Camera still, focus sharp, one pointer hint

## Parameters

- `focusW` Focus box width (stage px): default 287px, range 100 to 900px
- `focusH` Focus box height (stage px): default 96px, range 50 to 600px
- `focusPad` Focus box padding: default 24px, range 8 to 60px
- `focusScale` Zoom factor: default 1.6x, range 1.6 to 2x
- `focusX` Focus X (stage px, before zoom): default 360px, range 0 to 1920px
- `focusY` Focus Y (stage px, before zoom): default 600px, range 0 to 1080px
- `dimWash` Surround white wash: default 0.72, range 0.5 to 0.85
- `dimBlur` Surround blur: default 3px, range 0 to 6px
- `pullDuration` Push-in duration: default 1.2s, range 1 to 1.5s

## Good for

- Pointing at one action inside a busy screen
- Going from overview to detail in a feature walkthrough

## Not for

- Screens with tiny text and no hi-res capture
- Calling out several regions at once

## Source files (plain text)

- https://uifino.com/videos/shot-ui-focus-pull/source/SPEC.md
- https://uifino.com/videos/shot-ui-focus-pull/source/PROMPT.md
- https://uifino.com/videos/shot-ui-focus-pull/source/NOTICE.md
- https://uifino.com/videos/shot-ui-focus-pull/source/project/assets/fonts/OFL.txt
- https://uifino.com/videos/shot-ui-focus-pull/source/project/compositions/intro.html
- https://uifino.com/videos/shot-ui-focus-pull/source/project/hyperframes.json
- https://uifino.com/videos/shot-ui-focus-pull/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.5 KB |
| SPEC.md | doc | 4.1 KB |

### PROMPT.md

```md
# PROMPT：shot-ui-focus-pull

## 照抄复刻
用 `/hyperframes` 做一条 1920x1080、30fps、5 秒的镜头，按下面的数字：

1. 底色 #FFFFFF。浅色界面截图（至少 3840 宽）显示成 2400x1350，左上角放在 (-240, -357)，用 clip-path: inset(100px 73px 0 73px) 去掉页面两侧灰边和顶部多余内容，其余补白底，画面里看不到页面边缘。不画浏览器外壳。
2. 0–0.9 秒：整屏从 1.03 倍收到 1.0（expo.out，原点画面中心）。0.9–1.2 秒静止。
3. 1.2–2.4 秒：包住截图的容器（原点左上）scale 1 到 1.6，x = 960 − 1.6×focusX，y = 540 − 1.6×focusY，power2.inOut。同时底层截图 blur 0 到 3px，上面盖一层白色蒙层透明度 0 到 0.72；再在蒙层上放一份清晰的同一张截图，用 clip-path: inset(...) round 16px 裁成焦点框：中心 (focusX, focusY)，宽高 focusW×focusH（切换器本体加四周 24px，本条 287×96），框的边必须落在空白处，不能有文字行穿过边缘。根上写 data-motion-blur="on"。
4. 2.4–5.0 秒：镜头不动。2.6 秒起一句提示（4 个词以内，动词开头）：先是一条 78x2px 墨色引线从左向右长出（0.25 秒），再 0.12 秒后出文字面板（#ECECEE 底、#18181B 字、IBM Plex Sans 28px 字重 500、8px 圆角、无描边），0.2 秒从虚化 6px 变清晰，不位移，留到片尾。引线左端贴着焦点元素右边缘外约 6px：x = 960 + (focusW/2 − focusPad) × focusScale + 6，垂直居中 y = 540。

需要替换的地方：
- screen：你自己的浅色界面截图，宽度不小于 3840（1.6 倍时 1:1）。图片显示尺寸、偏移和 clip-path 按你的截图重算，保证看不到页面边缘。
- focusX、focusY、focusW、focusH、focusPad：焦点框的中心、宽高和包住元素的留白（推近前舞台像素，focusPad 默认 24）。提示位置和清晰框都由这四个变量推出。
- focusScale：1.6–2.0，倍率越大，图越要高清。
- dimWash（0.72）、dimBlur（3）、pullDuration（1.2）。
- hint：提示文字，传空字符串则不放。
- 焦点框圆角 16px 写在 compositions/intro.html 里。深色界面可把白纱换成亮度 0.6 加黑纱。

## 只学手法
先全景交代，再用 1.6 倍推近（power2.inOut，1.2 秒）把焦点隔离出来：周围加 72% 白纱和 3px 虚化，焦点只留一个圆角矩形保持清晰（框边落在空白处），推近后镜头完全停住 2 秒以上，一条引线加一句浅色提示指向焦点。
```

### SPEC.md

```md
# SPEC：shot-ui-focus-pull

## LOOK
- 色值：底色 #FFFFFF；提示面板底 #ECECEE、字 #18181B；引线 #0A0A0A；界面部分保持截图原色（浅色 Kestrel 定价页）。中性色 4 个，无强调色。
- 字体：IBM Plex Sans（提示，字重 500，本地 assets/fonts/ibm-plex-sans.woff2）；中文备用 Noto Sans SC。只用这两个族。选 IBM Plex Sans 是因为它比 Inter 更有个性，又和产品界面的无衬线不冲突。
- 字号：提示 28px，一档。
- 圆角：焦点框 16px，提示面板 8px，共 2 档。
- 阴影：无。描边：无（引线 2px 实线）。
- 画面裁切（全部写死在 compositions/intro.html）：截图 3840x2160 显示成 2400x1350（0.625 倍），左上角放在舞台 (-240, -357)。再用 clip-path: inset(100px 73px 0 73px) 去掉页面两侧灰边、页面边线和顶部的大标题与副标题，其余补白底。页面本身是白底，补白后任何一帧都看不到页面边缘。
- 开场构图：左边标题列加两张价格卡，整体居中。
- 焦点：Monthly / Annual 切换器（含 -20% 小标签），本体约 239x48，四周加 focusPad=24px，焦点框 focusW×focusH = 287×96，中心 focusX/focusY = (360, 600)。框的边都落在空白处，没有文字行穿过边缘。

## MOTION
- 开场落定 0–0.9 秒：整屏 1.03 倍到 1.0，expo.out，以画面中心为原点。
- 推近 1.2 到 1.2+pullDuration（默认 2.4 秒）：镜头从 1.0 到 focusScale（默认 1.6），power2.inOut。镜头原点在左上，位移 x = 960 − s×focusX，y = 540 − s×focusY。1.6 倍时截图恰好 1:1 显示，不超过原图分辨率。同一段里，周围虚化 0 到 dimBlur（3px），同时盖一层白纱，透明度 0 到 dimWash（0.72），同缓动。浅色界面不压暗，用白纱加虚化，不会发灰。运动模糊 data-motion-blur="on" 开在根上。
- 焦点保持清晰：顶层放一份原图，用 clip-path: inset(...) round 16px 裁成焦点框（中心 focusX/focusY，宽高 focusW/focusH，舞台坐标），框外一律是白纱加虚化，不用渐隐椭圆，所以不会出现半行清晰半行模糊的文字。
- 提示（Switch to annual，3 个词）：推近结束后 0.2 秒开始。先是一条 78x2px 的墨色引线从左向右长出（0.25 秒，power4.out），引线左端贴着切换器右边缘外约 6px，横穿焦点框的右侧留白；再 0.12 秒后文字面板（#ECECEE 底、#18181B 字、28px、8px 圆角、无描边）从虚化 6px 变清晰（0.2 秒），不位移，留到片尾。位置由变量推出：引线左端 x = 960 + (focusW/2 − focusPad) × focusScale + 6（本条 1157），垂直居中在 y = 540。
- 推近结束后镜头不动。
- 变量：screen、focusX、focusY、focusW、focusH、focusPad、focusScale、dimWash、dimBlur、pullDuration、hint 都在 index.html 的 data-composition-variables 里，intro.html 通过 getVariables() 读取；hint 传空字符串则不放提示。

## 逐拍节拍表
| 拍 | 起止秒 | 画面 | 镜头 | 转场 | 屏幕文案原文 |
| --- | --- | --- | --- | --- | --- |
| establish | 0 - 1.2 | 定价区全貌，整屏落定一次 | 1.03 到 1.0 | 无 | 无 |
| pull | 1.2 - 2.4 | 推近到切换器，周围白纱加虚化 | 1.0 到 1.6 power2.inOut | 无 | 无 |
| hold | 2.4 - 5.0 | 焦点清晰，周围 72% 白纱加 3px 虚化，镜头不动 | 不动 | 无 | Switch to annual（2.6 秒起，留到片尾） |

## 禁用项
点击光圈、Logo 贴角落、标题压在暗屏上、编号注释、彩色辉光、呼吸漂浮循环、浏览器外壳、亮色大块提示条、渐隐椭圆焦点、灰色发闷的压暗。

## 已知取舍
- 门禁对产品界面容器给出两条 impeccable 提示（容器内边距、裁切容器里有定位子元素）。这两条都来自全出血裁切的截图层，是刻意做法，不是排版问题。
- 代码里不留解释性注释，所有说明都写在本文件。
- 推近后画面右侧会露出价格卡的一小条边和半个 "$1"，在白纱里，作为上下文保留。
- 截图 3840 宽，1.6 倍 1:1 显示，任务文字字高约 25–27px；再放大会超出原图分辨率发软。
- 竖屏没有单独重构图，横版缩小使用。
```
