Communitygithub.com

里程碑揭示

用 Claude Code 在代码中制作一个 12 秒循环的里程碑片段。数千个微小的点像夜空一样飘动,汇聚成你的真实数字(粉丝、订阅者、收入、客户),一条线在下方画出,标签随之落定。高级感,非派对风格。当有人展示成果时使用。

里程碑揭示 是什么?

这是一个用于生成高级感里程碑动画片段的 Claude Code 技能,专为展示真实数据(如粉丝数、订阅者数、收入等)设计。该技能要求用户提供带逗号的精确数字、来源截图、标签文本以及品牌色、字体和尺寸等信息。它会在 12 秒循环中,使用约 3200 个点粒子(类似夜空)汇聚成数字形状,然后画出强调线并淡入标签,最后粒子散开以无缝循环。技能强调数据真实性,禁止四舍五入或添加 '+' 号。支持 1080×1350 尺寸用于 LinkedIn 信息流,并可导出 MP4 用于 Reels。输出为单个自包含 HTML 文件,含窗口跳帧函数和固定随机种子以确保可重复性。

兼容平台✓Claude Code~Codex CLI~Cursor
npx skills add https://github.com/charlie947/motion-graphics-skills/tree/main/skills/milestone-reveal

在你喜欢的 AI 中提问

打开一个已预加载此 Agent Skill 的新对话。

文档

里程碑揭示,代码构建

每个点代表一个粉丝、一位订阅者或一个客户。它们汇聚成数字,停留,然后散开,使循环无跳跃。

开始之前: 如果存在 brand.md 和 MOTION.md,请阅读它们。如果没有,先运行 brand-intake,或者询问十六进制颜色代码、字体和徽标文件。未经它们确认,切勿称结果符合品牌调性。

步骤 1:询问四件事,然后等待

  1. 数字,完全按照显示样式, 带逗号。例如:“250,000”。
  2. 来源。 显示该数字的仪表板截图或链接。无来源,无片段。
  3. 标签, 逐字逐句。例如:“LinkedIn 关注者”。
  4. 品牌与尺寸。 背景色、粒子色、强调色、字体文件(附件)以及尺寸。默认 1080 × 1350,12 秒。

数字是用户的真实、有来源的数字。切勿四舍五入,切勿添加“+”,切勿将目标替换为结果。如果来源显示 12,431,片段就是 12,431,或者用户自己选择一个较低的整数。

步骤 2:构建简报(粘贴到 Claude Code)

构建一个自包含的 HTML 文件(canvas),用于 12 秒无缝循环,尺寸为 [宽度] x [高度]。基调:高端产品发布,非派对风格。无弹跳、超调、五彩纸屑或闪光爆裂。

固定文本(真实数字,请勿更改、四舍五入或重新设计样式):“[数字]”和“[标签]”。屏幕上无其他文字。

品牌:背景 [BG],粒子和数字 [INK],强调线 [ACCENT]。字体:附带的 [FONT] 文件,以 base64 嵌入。如果缺少字体文件,请停止并询问我。

粒子:约 3,200 个小点,具有不同的不透明度,并带有微弱的闪烁效果,像夜空一样。通过将“[数字]”以粗体绘制到离屏 canvas 上,并对其填充像素进行采样作为目标点,来构建数字的形状。将大部分点分配给数字,使其在信息流尺寸下清晰可读,包括逗号。其余点保持为更暗的飘动星星。

时间线:
1. 0-2s:点飘动。无其他内容。
2. 2-6.5s:点以长时间、错落的缓动效果拉入数字,如同引力,而非 snap。
3. 6.5-7.5s:一条细 [ACCENT] 线从左到右在数字下方画出。
4. 7.5-8.5s:标签淡入并上升约 12px 就位。
5. 8.5-10.5s:保持。数字仅闪烁。
6. 10.5-12s:标签和线淡出,点散回其精确起始位置。第 12 帧与第 0 帧匹配。

构建规则:对所有位置使用固定随机种子。添加 window.seek(seconds) 函数,仅通过时间绘制任何精确帧。减少运动时显示保持帧。

构建完成后:在 0, 2, 4.5, 6.5, 7.5, 9.5, 11 和 12 秒处捕获帧。检查数字是否完全为“[数字]”,无任何内容被裁剪或重叠,并且帧 0 和帧 12 完全相同。修复问题时保留每个早期版本。

我踩过的坑

  • 数字在信息流尺寸下看起来是灰色的。 覆盖每个数字的点太少。修复方法:将约 3,200 个点中的 2,700 个分配给数字,每个点 2.5px,接近完全不透明度。
  • Chrome 可以以两种方式绘制相同的帧。 重复读取像素后,它会切换绘制模式,因此一帧可能会出现轻微不同。使用 willReadFrequently: true 创建 canvas 上下文,这样每次 seek 都会得到相同的像素。
  • 所有内容都必须基于种子。 渲染时的 Math.random() 会使每次导出都不同,并破坏循环。
  • 测量接缝,不要仅靠目测。 我通过构建的版本帧 0 和帧 12 之间的差异为 0 像素。

步骤 3:导出

HyperFrames(免费,开源):npx skills add heygen-com/hyperframes,然后 npx hyperframes render。LinkedIn 信息流使用 1080 x 1350。对于 Reel,将 MP4 交给 reel-export。在说明文字中放入数字的来源。

Individual skills in this repo

This repo contains 14 individual skills — each has its own dedicated page.

animated-chart

Make a looping animated chart for LinkedIn or a newsletter in code with Claude Code. Bars that become a line, a number that counts up, a before and after. Every value stays exactly as given. Use when someone says

apple-launch-film

Rebuild an Apple-style Mac launch film entirely in code with Claude Code. A thin menu bar, the black notch growing into widgets one scene at a time, full-screen gradient wallpapers and one short caption per scene. No screen recording, no After Effects. Use when someone says

brand-intake

The setup step every other skill in this pack reads. A short interview plus 3 to 5 reference frames becomes two files in your project, brand.md (who you are, what you sell, your assets) and MOTION.md (your colours, type, timing and motion rules), plus a rule in CLAUDE.md so Claude reads them before it animates anything. Use at the start of any motion project, or when someone says

launch-video

Make a 30-45 second product launch video in code with Claude Code, the kind SaaS companies post on launch day. One sentence split across scenes, real product screens with slow camera moves, a typed prompt, a proof beat and a clear call to action. Use when someone says

loop-cover

Turn a newsletter or blog cover into a seamless looping GIF at 896 x 640, 180 frames at 20fps. Only the one element you name moves, the loop is rotated so frame 1 shows the finished picture, and the seam is measured, not eyeballed. Use when someone says

model-showdown

Give the same motion brief to three AI models, keep each first try, render all three the same way and stack them into one comparison video with model names and logos. Makes a 16:9 side-by-side for a newsletter and a 1080 x 1920 stacked reel for Instagram and TikTok. Use when someone says

motion-brief-writer

Turns a rough idea for an animated graphic into a precise build brief for Claude Code, in your own brand. Asks for anything essential first (exact numbers, size, length, brand), keeps real results apart from sample data, and never invents a figure. Use when someone says

motion-effects

Build any of 16 premium motion effects from scratch in your own brand, as one 8-second looping HTML file with window.seek(seconds) so it exports frame-exact to MP4 or GIF. Interfaces (button to player, search to results, card to workspace, tabs to panels), data (chart morph, dashboard zoom, spring stack, magnetic dock), type (masked type, elastic type, text to layout, image reveal) and systems (perspective shift, glass focus, flowing paths, particle logo). Use when someone says

motion-prompt-writer

Write a complete 8-part Claude Motion prompt (The bar, Format, The one rule, Look, Motion, Never, Before you finish, The scene) for one short looping motion graphic, in your own brand. Takes your brand (a website screenshot, a logo, hex codes, or nothing for the Apple-style default) and one moment you want to show, in plain words. Use when someone says

newsletter-promo

Turn a newsletter edition into a 12-20 second promo clip for LinkedIn, Instagram or X that drives people to read and subscribe. Hook question, three proof frames from the edition, then the newsletter name and where to read it. Use when someone says

reel-export

Turn any horizontal or square motion video into a 1080 x 1920 Instagram Reel or TikTok that uploads cleanly. Headline and logos inside the safe zone, H.264, yuv420p, limited colour range, bt709, a silent audio track when there is no sound, and an ffprobe check before upload. Use when someone says

reference-to-motion

Turn references you admire into a scene-by-scene Claude Motion prompt for your own topic and brand. Takes a video for the moves (screenshots, frames or a contact sheet of a reel or ad) and, optionally, a look reference for the style (a website, a brand, a moodboard). Use when someone says

title-sequence-3d

Make a cinematic 3D title sequence (8-15 seconds) in code with Claude Code and Three.js. A camera moves through a lit scene, such as a rainy street at night with brand names as neon signs, then a big question or title lands. Use when someone wants a scroll-stopping opener, a film-style intro,

vox-explainer

Make a short Vox-style documentary explainer (30-60 seconds) entirely in code with Claude Code. Torn paper, halftone texture, bold condensed type, motion on twos. Use when someone says

相关技能