MCP READYQuery DESIGN.md protocols, components, templates & tools directly from Claude Code, Grok Build and VS Code.Connect MCP →
uifino
CatalogStylesComponentsTemplatesVideosToolsConnect AI
uifino

DESIGN.md protocols & progressive UI engineering for humans and AI coding agents.

CATALOG
Linear DESIGN.mdClaude DESIGN.mdVercel DESIGN.mdFlighty iOS Spec
STYLES
All StylesHairline GridFrosted GlassNeo-Brutalism
COMPONENTS
HeroAuthTablesCounters
TEMPLATES, VIDEOS & TOOLS
Starter TemplatesVideosBackground GeneratorShadow & Token LabMCP Server Setup
Home/Videos

Zoom Through the Card

The camera dives into one card on a wall of cards; the scene sitting in its window fills the screen and becomes the next scene, with no cut.

Motion4s1920×1080 · 30fps
0s / 3.5sFrame 0
Copy it exactly
用 `/hyperframes` 做一个 1920×1080、30 fps、3.5 秒的穿卡转场。一个场景文件,根节点加 `data-motion-blur="on"`。

画面(底色 `#F6F5F2`):
1. 一面 3×3 的卡牌墙,每张卡外壳 592×396,圆角 16,边框 2px `#E2DFD8`,填充 `#F6F5F2`,内边距 8(边框 2 加内边距 6);上面是 56 高的标题行,下面是 576×324 的窗口,窗口圆角 8,空卡的窗口填 `#E2DFD8`。卡间距 88。
2. 中央这张卡外壳左上角在 (664, 314),只有它带阴影 `0 8px 24px rgba(18,18,18,0.08)`。标题「下一步」36px、字重 600、字色 `#D4412A`,左缩进 8。
3. 窗口里放下一幕:1920×1080 的画布,底 `#121212`,主句「从这里开始」120px、字重 700、字距 -0.02em、字色 `#F6F5F2`(变量 `nextInk`),左边距 192,行盒垂直居中在 y = 486;下面一条 160×8 的强调色短横,左 192、上 592。下一幕整体缩放 0.3(`transformOrigin: 0 0`),放进窗口,窗口 `overflow: hidden`。
4. 9 张卡放在一个 1920×1080 的容器里,容器本身不缩放;背景是一块不缩放的整屏纯色,保证任何一帧都没有空底。镜头枢轴 (960, 540),也就是窗口中心:每张卡各自缩放,变换原点设成 `960 − 卡左` 和 `540 − 卡上`(单位 px)。

动作:
- 0.0–0.8 秒完全静止,周围的卡也不动。
- 0.8–1.5 秒镜头冲入:每张卡的倍率 `k = (10/3)^p`,p 用一个 tween 从 0 走到 1,总长 0.7 秒。前 0.4 秒用 `power3.in` 走到 p = 0.755,后 0.3 秒用 `expo.out` 走完剩下的 0.245,两段在接缝处速度一致。每一帧同时把窗口圆角设成 `8 × (1 − p)` px。
- 倍率到 10/3 时窗口正好撑满画面,下一幕的缩放 0.3 × 10/3 = 1,所以这一帧和下一幕单独铺满画面时一模一样。
- 1.5–3.5 秒完全静止。
- 不旋转,不白闪,不淡入淡出,不加透明度动画。

需要替换的地方:
- 文案:变量 `cardTitle`(中文「下一步」,英文 `Next`)、`nextText`(中文「从这里开始」,英文 `Start here`)。
- 颜色:`bg`(牌墙底色和卡片填充,不影响下一幕)、`ink`(下一幕底色)、`nextInk`(下一幕主句字色)、`line`、`accentColor`。
- 改窗口大小时,代码里的窗口圆角起点 8(`BODY_RADIUS`)和总倍率 10/3(`ZOOM`)必须一起改,它们不是变量。
- 根节点要同时写 `data-motion-blur="on"` 和 `data-motion-blur-events="on"`,否则最快几帧没有运动模糊;倍率必须设在每张卡自己身上,设在总容器上整个画面都不会糊。
- 时间和缓动:`diveStart`、`inDuration`、`inEase`、`outDuration`、`outEase`、`inShare`。
- 想放自己的下一幕:把 `#zt-next` 里的内容换成自己的 1920×1080 画面;窗口比例必须是 16:9。中文用思源黑体子集,英文用 Hanken Grotesk(都是 `@font-face` 指向 `assets/fonts/`),不要联网取字体。
Learn the technique
下一幕从第 0 帧起就缩小到 30% 躺在卡的窗口里,镜头按对数倍率放大到 10/3,窗口正好撑满画面,这一帧就是下一幕的第一帧;0.7 秒的冲入分成 0.4 秒 `power3.in` 加 0.3 秒 `expo.out`,接缝速度一致,窗口圆角同步缩到 0,背景始终有整屏纯色垫底。
MCP
get_video({ "id": "motion-transition-zoom-through" })
Download project

Beats

TimePurposeVisualCameraTransitionOn-screen text
0–0.8sShow the doorway and the preview in its windowA 3x3 wall of cards; the centre card is titled Next and its window holds the next scene at 30%; fully stillstatic—Next; Start here
0.8–1.5sPass through the card into the next sceneZoom of 3.33x: 0.4 s power3.in then 0.3 s expo.out; the window radius goes from 8 px to 0 and the window ends exactly full-framezoom-inzoom-through—
1.5–3.5sThe next scene takes overThe next scene fills the frame, pixel-identical to what was in the window; fully stillstatic—Start here

Parameters

ParameterDefaultRangeKind
Dive start
diveStart
0.8s0.3 – 1.5sTiming
Accelerating part duration
inDuration
0.4s0.25 – 0.6sMotion
Accelerating part ease
inEase
power3.in—Motion
Landing part duration
outDuration
0.3s0.2 – 0.5sMotion
Landing part ease
outEase
expo.out—Motion
Zoom progress at the end of the accelerating part
inShare
0.7550.6 – 0.9Motion

Good for

  • A caused transition between two chapters
  • The outgoing scene has a card, window or button that can act as the doorway
  • The next scene is previewed inside the card so the viewer can expect it

Not for

  • Scenes with no clear doorway element
  • A next scene that is not a full 16:9 frame (the window must match the canvas ratio)
  • Transitions that need rotation, a white flash or a crossfade

Source

project
project/assets/fonts
project/compositions
← PreviousWaveform to TextNext →Whip Pan