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

Data Count-Up Settle

One big number counts from 0 to its target on a long ease-out, slows into the last digits, and only after it lands do the unit and caption rise in; for showing one key figure.

Motion4s1920×1080 · 30fpsLaunchChangelogBrand
0s / 3.5sFrame 0
Copy it exactly
用 `/hyperframes` 做一个 1920×1080、30 fps、3.5 秒的数字计数动效。底色 `#0F1712`,主字 `#ECF2EE`,次要字 `#8FA096`,细线 `#3A4A40`,强调色 `#7FD99A`。字体用本地 `@font-face`:数字和西文 IBM Plex Sans,中文思源黑体,不要联网取字体。

做法:
1. 画面只有三样:一个 320px、字重 600 的大数字,数字下面一条 2px 细线,细线下面一行 120px、字重 500、行高 156px 的「次部署 · 本周」,三项间距 32px。数字(字距 -0.02em,行高 320px)、细线、单位行竖着叠成一组,组内间距 40px,整组水平垂直居中;数字框宽度 = (数字个数 × 0.6 + 逗号个数 × 0.3)× 字号(12,480 为 1056px),细线宽度等于这一组的宽度,单位行在组内居中。
2. 数字要定宽:每个字符放进固定宽度的格子(数字 0.6em,逗号 0.3em),同时设 `font-variant-numeric: tabular-nums`。数字变化时只换内容,位置完全不动。
3. 0.1 秒起,一个计数器从 0 到 12480,`expo.out`,1.4 秒,每帧取整、加千分位逗号再显示。第 0 帧显示「0」。同一段时间里,数字颜色从 `#8FA096` 变到 `#ECF2EE`。不要匀速,不要缩放脉冲。
4. 1.5 秒数字落定后:细线从左向右画出(`scaleX` 0 到 1,`expo.out`,时长等于单位升起时长 + 0.1 秒,默认 0.7 秒);1.6 秒起「次部署」「·」「本周」各套一层 `overflow: hidden` 遮罩,依次从下沿升起(`yPercent` 115 到 0,`expo.out`,0.6 秒,间隔 0.08 秒)。「·」用强调色,「次部署」用主字色,「本周」用次要字色。
5. 约 2.4 秒到 3.5 秒完全静止,没有退场。

需要替换的地方(都是场景根上的变量,在挂载处用 `data-variable-values` 传):
- `target`(目标数字,默认 12480)、`unit`(单位,默认「次部署」,英文 `deploys`)、`caption`(说明,默认「本周」,英文 `this week`)。
- 颜色:`accentColor`、`bg`、`ink`、`muted`、`rule`。字号:`numberSize`(默认 320)。
- 时间与缓动:`countStart` 0.1、`countDuration` 1.4、`countEase` expo.out、`unitDelay` 0.1、`riseDuration` 0.6、`riseEase` expo.out、`stagger` 0.08。
- 数字块宽度和居中由脚本按位数和字号算出,不用手改。目标数字取 100 到 999999,字号取 240 到 400。
Learn the technique
数字用 `expo.out` 在约 1.4 秒里从 0 数到目标值,前 0.5 秒就走完 90%,最后 10% 慢慢停住;每个字符占固定宽度(数字 0.6em)加 `tabular-nums`,计数时位置一动不动;数字停住之后,单位和说明才依次从遮罩下沿升起(`expo.out` 0.6 秒,间隔 0.08 秒)。
MCP
get_video({ "id": "motion-data-count-up" })
Download project

Beats

TimePurposeVisualCameraTransitionOn-screen text
0–1.5sThe number counts from 0 to the targetFrom 0.1 s, 12,480 counts for 1.4 s on expo.out; every character has a fixed width so nothing shifts; the color goes from secondary to primarystatic—12,480
1.5–2.4sUnit and caption appear once the number stopsA hairline (#3A4A40) draws from the left; unit, dot and caption rise out of masks, expo.out 0.6 s, 0.08 s apartstatic—deploys · this week
2.4–3.5sLet the viewer readFully still: no scale, drift or breathingstatic——

Parameters

ParameterDefaultRangeKind
Target number
target
12480100 – 999999Content
Unit text
unit
次部署—Content
Caption
caption
本周—Content
Number font size
numberSize
320px240 – 400pxLook
Count start
countStart
0.1s0 – 0.5sTiming
Count duration
countDuration
1.4s1 – 2sTiming
Count ease
countEase
expo.out—Motion
Delay from landing to unit
unitDelay
0.1s0.05 – 0.4sTiming
Unit rise duration
riseDuration
0.6s0.4 – 0.9sMotion
Unit rise ease
riseEase
expo.out—Motion
Unit stagger
stagger
0.08s0.05 – 0.12sTiming
Accent color
accentColor
#7FD99A—Look
Background
bg
#0F1712—Look
Text color
ink
#ECF2EE—Look
Secondary text color
muted
#8FA096—Look
Hairline color
rule
#3A4A40—Look

Good for

  • A single key figure per screen, such as deploys, users or completions
  • A unit and time range right after the number
  • Works in Chinese and English, numbers of 3 to 6 digits

Not for

  • Comparison screens where several numbers count at once
  • Data pages that need charts, progress rings or gauges

Source

project
project/assets/fonts
project/compositions
← PreviousBar Chart Told in Reading OrderNext →Three Eases Side by Side