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

Typed Like a Letter

An opening line types itself one character at a time like a letter: 55 to 90 ms per key, longer stops at commas and full stops, a cursor that blinks only while idle and retracts when done; for the first line of a launch film.

Motion6s1920×1080 · 30fpsLaunchBrand
0s / 5.5sFrame 0
Copy it exactly
用 `/hyperframes` 做一条 1920×1080、30 fps、5.5 秒的动效:一句开场白像写信一样逐字打出,打完光标收起,整句静止。

1. 画面:纯色底 `#F6F5F2`;整句单行,字 `#121212`,中文 Noto Serif SC、西文 Instrument Sans,字重 500,本地 `@font-face`,字号 88px(上限;整句超过 1536px 时缩小:字号 = min(88, floor(1536 / 整句在 100px 下的宽度 × 100))),行高 1.3,字距 0。整句按完整句子先排好并左右居中(中文默认文案宽 1408px,左边缘 x=256),行中线 y=540。每个字单独一个 span,初始 opacity 0,所以打字不会推动版面。没有任何别的元素、颜色和文字。
2. 文案:「你好,这是我们准备了一年的东西。」英文:Hi. This is what we spent a year on.
3. 光标:宽 4px、高 92px(宽 = round(字号 × 0.045),高 = round(字号 × 1.05))的 `#121212` 纯色竖条,圆角 0,没有阴影和发光;垂直居中在 y=540;左边缘贴在最新一个字的右边缘外 3px。第一个字之前停在行首。
4. 出字:每个字在自己的时间点瞬间出现(opacity 0 到 1,0.001 秒),没有淡入、位移或缩放;光标同一时刻跳到它右边,不滑动。第一个字 1.0 秒出现。
5. 节奏:相邻两字间隔 55 到 90 毫秒,用固定种子的伪随机(mulberry32,种子 7,间隔 = 0.055 + 随机数 × 0.035 秒),每次渲染一样。逗号类(,、;:和英文 , ; :)后面隔 0.35 秒,句末类(。!?…和后面跟空格的英文句点)后面隔 0.6 秒,停顿替换随机间隔,不叠加。默认中文文案各字出现的秒数:1.000、1.055、1.113、1.463、1.542、1.615、1.684、1.756、1.819、1.894、1.974、2.038、2.099、2.180、2.253、2.315。
6. 光标行为:打字时常亮;停下超过 0.3 秒才开始闪:停下后 0.3 秒内常亮,之后灭 0.5 秒、亮 0.5 秒,周期 1 秒;下一个字出现时立刻亮。第一个字之前的 0 到 1.0 秒也一样(0.3 到 0.8 秒灭)。不要用 `repeat: -1`,把每次亮灭写成时间线上的定点 `fromTo`。
7. 收起:最后一个字出现 0.8 秒后(中文版 3.115 秒),光标 `scaleY` 从 1 到 0,0.2 秒,`power3.in`,之后不再出现;3.315 秒起整句完全静止到 5.5 秒。
8. 禁止:整句或逐字淡入、字符位移或缩放入场、键盘或打字机图标、音效图标、彩色或发光的光标、光标滑动、退格改字、下划线、第二行文字。
9. 时间线里所有 `fromTo` 都带 `immediateRender: false`,并先用 `gsap.set` 把每个字设成 opacity 0、光标设成行首;排版要等字体加载完(`document.fonts.load`)再量宽。

需要替换的地方(在 `index.html` 里 `id="typewriter"` 的挂载元素上写 `data-variable-values='{"text":"Hi. This is what we spent a year on."}'` 传入;换新汉字后要重新生成字体子集):
- 文案:`text`。英文句子默认打到 4.02 秒、收起到 5.02 秒,只能读约 1.5 秒;英文请直接用 `data-variable-values='{"text":"Hi. This is what we spent a year on.","startAt":0.4}'`,最后一个字 3.42 秒,整句可读 2.08 秒。也可以把总时长改成 7 秒(`index.html` 和 `typewriter.html` 的 `data-duration` 一起改)。
- 颜色:`ink`(字和光标)、`bg`(底色,`index.html` 里的兜底底色一起改)。
- 字号:`fontSize`(88)。
- 节奏:`startAt`(1.0)、`seed`(7)、`gapMin`(0.055)、`gapMax`(0.09)、`commaPause`(0.35)、`endPause`(0.6)。
- 光标:`blinkAfter`(0.3)、`blinkPeriod`(1)、`retractDelay`(0.8)。
- 不要加产品界面和其他文字。
Learn the technique
把整句先排好再让每个字瞬间出现,字间隔 55 到 90 毫秒(固定种子的伪随机),逗号后停 0.35 秒、句末停 0.6 秒;光标是同色细竖条,打字时常亮、停下超过 0.3 秒才按 1 秒周期闪,打完 0.8 秒后用 0.2 秒收起,之后整句静止。
MCP
get_video({ "id": "motion-text-typewriter-letter" })
Download project

Beats

TimePurposeVisualCameraTransitionOn-screen text
0–1sShow the cursor first so the viewer knows something is about to be writtenPaper ground, cursor at the line start: solid 0.3 s, off 0.5 s, on 0.2 sstatic——
1–1.11sThe first two characters and the comma (English: "Hi.")Characters pop in one by one, 55 and 58 ms apart, cursor solid right after the newest onestatic—Hi.
1.11–1.46sThe pause after the comma, like a person thinking0.35 s stop; the cursor only starts to blink after 0.3 s and is cut off after about 0.05 sstatic——
1.46–2.32sType the rest of the sentence in one run13 characters at 55 to 90 ms each, fixed seed, same every render; cursor stays solidstatic—This is what we spent a year on.
2.32–3.12sRest after the full stop, one cursor blinkSolid 0.3 s, off 0.5 s (2.615 to 3.115 s)static——
3.12–3.32sThe cursor goes awayCursor comes on and collapses to its center, 0.2 s, power3.instatic——
3.32–5.5sLet the sentence be readThe sentence stays fully still for 2.185 sstatic—Hi. This is what we spent a year on.

Parameters

ParameterDefaultRangeKind
Sentence to type
text
你好,这是我们准备了一年的东西。—Content
Max font size
fontSize
88px56 – 120pxLook
First character time
startAt
1s0.3 – 2sTiming
Random seed
seed
71 – 999Motion
Shortest key gap
gapMin
0.055s0.03 – 0.1sMotion
Longest key gap
gapMax
0.09s0.05 – 0.15sMotion
Pause after a comma
commaPause
0.35s0.2 – 0.6sTiming
Pause after a sentence end
endPause
0.6s0.3 – 1sTiming
Idle time before blinking
blinkAfter
0.3s0.2 – 0.6sTiming
Blink period
blinkPeriod
1s0.6 – 1.4sMotion
Last character to cursor retract
retractDelay
0.8s0.4 – 1.5sTiming
Text and cursor color
ink
#121212—Look
Background
bg
#F6F5F2—Look

Good for

  • The first line of a launch or brand film
  • One sentence that fits on a single line
  • A clean ground where one sentence is the whole point

Not for

  • Multi-line or multi-paragraph copy
  • Whole-sentence fades or word-by-word reveals
  • Demos that need typos and backspacing (this one never deletes)

Source

project
project/assets/fonts
project/compositions
← PreviousStatus Word FlipNext →Weight Wave