Communitygithub.com

HyperFrames 动画技能

包含 HyperFrames 的所有动画知识——原子动作规则、多阶段场景蓝图、场景过渡、更广泛的动效设计技术,以及七个运行时适配器(默认 GSAP,外加 Lottie、Three.js、Anime.js、CSS 关键帧、Web Animations API、TypeGPU)。适用于任何动效或动画任务:选取 2-4 条规则进行组合、加载蓝图、或查询特定运行时的 API(例如 GSAP 缓动 / Lottie 播放器 / Three.js 混合器)。还涵盖对现有合成动画图表的审核以及 24 种命名文本动画效果。HyperFrames 原生特性:单条暂停时间线、可安全跳转、确定性输出。

HyperFrames 动画技能 是什么?

HyperFrames 动画技能是一个综合性的动效知识库,专为 HyperFrames 框架设计,提供从原子动效规则到多阶段场景编排、场景过渡、通用动效设计模式以及七个运行时适配器(GSAP、Lottie、Three.js、Anime.js、CSS 关键帧、Web Animations API、TypeGPU)的全方位支持。该技能的核心价值在于它的模块化方法:用户可以通过组合 2-4 条原子规则快速创建动效,也可以直接加载预定义的场景蓝图来加速复杂编排,或者根据具体需求查阅特定运行时的 API 文档。除了上述核心功能外,该技能还提供了用于审核现有合成动画图表的脚本以及 24 种命名文本动画效果。技能文档强调了 HyperFrames 的核心约束,例如必须使用单条暂停时间线、禁止使用 `Math.random`/`Date.now`/`performance.now` 等非确定性操作,并推荐在空间动效中使用 GSAP 的变换别名(如 `x`、`y`、`scale`、`rotation`)而非布局属性(如 `width`、`height`、`top`、`left`),以确保动效的确定性和性能。此技能支持多种平台或开发环境,包括 Claude Code、Cursor、Codex 等,适用于任何需要基于 HyperFrames 框架进行动效设计和开发的场景。

兼容平台~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/1999AZZAR/designer-mcp/tree/HEAD/skills/video/engine/hyperframes-animation

在你喜欢的 AI 中提问

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

文档

HyperFrames 动画

所有动效知识集中在此技能中:规则(原子配方)、蓝图(多阶段场景模板)、过渡(场景间切换)、技巧(更广泛的动效设计模式)和适配器(每个运行时的 API)。

关于合成合约(数据属性、子合成、确定性),请参阅 hyperframes-core。

默认方式:组合原子规则

从 rules-index.md 中选取 2-4 条规则,用一条暂停的 GSAP 时间线将它们粘合在一起,完成。这比从蓝图开始更快,生成的代码也更少。

何时加载蓝图

  • 当场景与现有的预设计多阶段模板(如品牌展示、社交证明等)匹配,并且重用其阶段流水线确实可以节省创作时间时
  • 当你需要为复杂的 4-5 阶段编排获取可运行的、可作为依据的代码时

蓝图位于 blueprints-index.md 中。每个条目指向 blueprints/<id>.md(配方)。不要投机性地读取它;只有在你已经确定需要场景级编排时才加载它。

导览

想要…阅读
根据触发器/标签选取一个原子动效模式rules-index.md
阅读一条规则的完整 HTML / CSS / GSAP 配方rules/<name>.md
选取一个多阶段场景模板blueprints-index.md
读取一个蓝图的完整配方blueprints/<id>.md
创作一个场景过渡(CSS 驱动,在两个片段之间)transitions/overview.md, transitions/catalog.md
查找一个更广泛的动效设计技巧techniques.md
运动模糊——元素上的快门拖影,以及何时不使用它references/motion-blur.md
分析现有合成的动画图表scripts/animation-map.mjs
GSAP API——时间线 / 补间动画 / 位置参数adapters/gsap.md
GSAP——即用型效果配方rules/gsap-effects.md
GSAP——变换 / 性能adapters/gsap-transforms-and-perf.md
GSAP——缓动 / 错开adapters/gsap-easing-and-stagger.md
GSAP——时间线 / 标签adapters/gsap-timeline-and-labels.md
Lottie / dotLottie(After Effects 导出,window.__hfLottie)adapters/lottie.md
角色动画(行走循环、吉祥物、关节木偶、手势)adapters/lottie.md → 角色
Three.js / WebGL(3D 场景,AnimationMixer,hf-seek)adapters/three.md
Anime.js(window.__hfAnime)adapters/animejs.md
CSS 关键帧(animation-delay / play-state / fill-mode)adapters/css-animations.md
Web Animations API(element.animate(),currentTime 跳转)adapters/waapi.md
TypeGPU / WebGPU(navigator.gpu,WGSL,计算管线)adapters/typegpu.md
将 HTML 作为纹理 + WebGL/GLSL 后期特效(通过 drawElementImage 捕获实时 DOM)adapters/html-in-canvas-patterns.md
命名文本动画效果(通过外部 animate-text 技能的 24 个 ID)adapters/animate-text.md

运行时选择

  • GSAP 是 95% 动效工作的默认选择——涵盖时间线编排、变换、缓动、错开。本技能中的所有原子规则都基于 GSAP。
  • Lottie 用于资源自带预烘托时间线的情况(通常是 After Effects 导出),包括会行走、做手势或反应的字符。
  • Three.js 用于 3D 场景、摄像机运动、着色器驱动的视觉效果。
  • Anime.js 用于轻量级补间动画,当使用 GSAP 显得大材小用时。
  • CSS 用于简单的重复图案、装饰、闪光——无需 JavaScript 动画开销。
  • WAAPI 用于无需 GSAP 依赖的原生浏览器关键帧动画。
  • TypeGPU / WebGPU 用于 GPU 渲染的画布(粒子、液态玻璃、自定义着色器)。

多个运行时可以在一个合成中共存。每个运行时将其实例注册到特定于运行时的全局对象上,以便 HyperFrames 可以一次性在所有运行时中进行跳转。

关键约束

先决条件:hyperframes-core → 不可协商的规则(单条暂停时间线,data-duration 控制长度,不能使用 Math.random / Date.now / performance.now,不能使用 repeat: -1,不能对后期场景的片段进行页面加载时的 gsap.set,不能对 display 或原始 visibility 进行补间动画,以及在 async / setTimeout / Promise 内构建时间线)。核心规则允许在显式时间线边界上使用 GSAP 的 autoAlpha 和零持续时间可见性设置。仅在非片段元素或片段内的包装器上使用这些例外情况;框架拥有 .clip 的生命周期。不要在此处复述完整合约。

在核心合约基础上的动画创作附加项:

  • 预计算的布局常量——永远不要在补间动画时通过 getBoundingClientRect() 推导位置。补间动画时的 DOM 测量会因渲染器并行采样而不同步;在合成设置时计算一次坐标并在后续重复使用。
  • 空间动效仅使用 GSAP 变换别名(x, y, scale, rotation)。核心的白名单也允许对非空间属性使用 opacity / color / backgroundColor / borderRadius 进行补间动画——但永远不能使用 width / height / top / left 来修改布局。

脚本

node skills/hyperframes-animation/scripts/animation-map.mjs <composition-dir> \
  --out <composition-dir>/.hyperframes/anim-map

读取注册在 window.__timelines 上的每个 GSAP 时间线,枚举补间动画,采样边界框,计算标志,输出 animation-map.json。在创作后使用它来审核编排(死区、错开一致性、生命周期警告)。

animation-map.mjs 首先尝试从当前项目解析辅助包,然后可以引导捆绑的 HyperFrames 包版本。仅在技能在捆绑的 CLI/技能安装之外运行,并且你需要显式固定该引导版本时,才设置 HYPERFRAMES_SKILL_PKG_VERSION=<version>。

参见

  • hyperframes-core——合成结构、数据属性、子合成、确定性渲染合约
  • hyperframes-creative——调色板、字体排印、叙述、节拍规划(非动画创意指导)
  • hyperframes-cli——npx hyperframes lint / check / snapshot / preview / render

Individual skills in this repo

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

1999AZZAR/designer-mcp

SOTA animation and physics heuristic guide using motion.dev

1999AZZAR/designer-mcp

Add captions or subtitles to an existing single-subject talking-head video without editing the footage. Use for plain verbatim captions, cinematic captions embedded behind the subject, VFX captions, “炸/特效/酷炫字幕,” or a named identity from the 35-style catalog. Route by visual identity, not by backend engine. The quiet `anchor` rail is the default; embed every word only when the user explicitly wants a fully cinematic treatment. The workflow runs locally end to end, including transcription and subject matting; split multi-shot footage before applying it.

1999AZZAR/designer-mcp

Turn arbitrary text — an article, notes, a topic, a brief — into a faceless explainer video: there is no site or footage to capture, so the visuals are invented per scene (typography, abstract graphics, diagrams, data-viz). Use for topic explainers, concept breakdowns, how-tos, listicles. Not a video built from a website (/product-launch-video — promo or tour). Unclear → /hyperframes.

1999AZZAR/designer-mcp

Import Figma content into a HyperFrames composition — rendered assets, brand tokens, components, storyboard sections → reconstructed motion (frames read as states, not slides) (REST/CLI), connector-assisted motion when available, and shaders from a connector or native export. Use when the user pastes a figma.com link or asks to bring a Figma design, frame, logo, brand, or animation into a video/composition.

1999AZZAR/designer-mcp

Author or edit a custom HyperFrames composition when no specialized workflow fits, or when BRIEF.md sets flow: companion. Use for longer or multi-scene pieces, brand and sizzle reels, montages, static loops, static title cards, footage remixes, and freeform builds. Use motion-graphics instead for a short unnarrated motion-first unit, including an animated title. Route fresh creation through hyperframes before using this skill.

1999AZZAR/designer-mcp

Use when audio already placed in a HyperFrames composition needs to be mixed: fade-in/fade-out, crossfade, track gain or volume, volume automation, ducking, a music bed that fights a voiceover (voiceover carve), effects on a track (EQ, compressor, limiter, gate, saturation, delay, reverb, chorus, phaser, bitcrush), automation envelopes drawn on a track's volume or any effect parameter, or one submix bus carrying a chain, a fader and an automation clock for several tracks at once (`<hf-audio-group>`). Don't use for sourcing or generating audio — finding BGM, SFX, or making a voiceover is `/media-use`. Don't use for clip timing or track layout, which is `/hyperframes-core`.

1999AZZAR/designer-mcp

Use the HyperFrames CLI development loop: init, add, catalog, capture, lint, check, snapshot, compare, grade-compare, preview, play, present, beats, keyframes, single or batch render, publish, cloud, cloudrun, feedback, lambda, doctor, browser, info, upgrade, skills, compositions, timeline, docs, benchmark, telemetry, transcribe, auth, tts, and remove-background. Also use when diagnosing build or render failures. validate, inspect, and layout are deprecated aliases; use check. Covers local, HeyGen-hosted cloud, AWS Lambda, and Google Cloud Run rendering.

1999AZZAR/designer-mcp

The HyperFrames composition contract — build one renderable project. Use for composition structure, the `data-*` timing attributes, `class="clip"`, tracks, sub-compositions, variables, framework-owned media playback, deterministic-render rules, and validation. Read before writing composition HTML.

1999AZZAR/designer-mcp

Non-animation creative direction for HyperFrames videos. Use for design spec (frame.md / design.md) handling, palettes, typography, narration, beat planning, audio-reactive visuals, composition patterns, and brand / style decisions. For atomic motion patterns and scene blueprints, use `hyperframes-animation`.

1999AZZAR/designer-mcp

Use when a HyperFrames composition needs a punch-in, punch-out, zoom, reframe, Ken Burns treatment, camera move, visual match/whip handoff, or other seek-safe 2D/3D keyframes; also for GSAP, CSS keyframes, Anime.js, WAAPI, FLIP, paths, masks, SVG morph/draw, text trails, 3D depth, or `hyperframes keyframes` diagnostics. Don't use for broad scene strategy, brand design, media sourcing, captions, or general video planning.

1999AZZAR/designer-mcp

Search, install, and wire registry blocks and components into HyperFrames compositions. Use BEFORE hand-building any named visual — whenever a brief, a user, or a storyboard names a look, effect, treatment, or transition such as CRT scanlines, glitch, chromatic aberration, film grain, a shimmer sweep, a chart, a code or terminal window, a map, or a confetti burst — because roughly 400 hosted items already cover many of them and the search ranks all of them with nothing installed, no project, and no account. Also use when running hyperframes add or hyperframes catalog, installing one item or every block matching a tag, wiring an installed item into index.html, or working with hyperframes.json. Covers discovery, install locations, block sub-composition wiring, component snippet merging, and authoring a new block or component to contribute upstream (idea → scaffold → validate → PR).

1999AZZAR/designer-mcp

Mandatory entry point: read this first for any request to make, create, edit, animate, or render a video, animation, or motion graphic, including a promo, explainer, captioned clip, title card, overlay, slideshow or interactive deck, Remotion port, or any HyperFrames HTML composition. Also use it to inspect, diagnose, validate, preview, publish, or batch-render an existing HyperFrames project. Inputs may be a website URL, GitHub PR, Figma design or URL, text or brief, existing footage, or music. It resumes project state, captures intent when applicable, selects and installs the owning workflow, and routes domain capabilities. HyperFrames is the default output framework unless the user explicitly chooses another framework for the deliverable or asks only to record a browser session.

1999AZZAR/designer-mcp

Use when building or editing a HyperFrames project that people open in Studio: how the timeline should be laid out so it reads well (one caption track, one element kind per track, every scene a sub-composition) and where captions and key content may sit (safe zones). Don't use for how to perform an individual edit (split, trim, retime, volume, copy, swap): that is `creator-editing-recipes.md` in `/hyperframes-core`.

1999AZZAR/designer-mcp

Agent Media OS, the single skill for every media need in a HyperFrames project. Resolve BGM, SFX, image, icon, brand logo, voice, color grade, or LUT into a frozen local file or paste-ready block + ledger record (one verb, `resolve`); generate via TTS / music / image models when the catalog misses; produce voiceover, transcription, captions, and background removal through one shared audio engine; operate on media (cut / reframe / transform); and reuse assets across projects. Also use for vague feedback that real footage looks dark, flat, boring, should feel retro/camcorder/print/ASCII, needs privacy, or needs a media reveal.

1999AZZAR/designer-mcp

Turn a music track (an audio file, a video to pull audio from, or a track generated from a mood brief) into a beat-synced video — lyric video, slideshow, or kinetic promo. The music drives all pacing; any user-supplied images/videos are cut onto the same beat grid, and a complete video needs zero assets. Narrated pieces → the input-matched workflow (see /hyperframes). Unclear → /hyperframes.

1999AZZAR/designer-mcp

Turn a GitHub pull request (a PR URL, owner/repo#N, or 'this PR' in a checked-out repo) into a code-change explainer video — changelog, feature reveal, fix, or refactor walkthrough built from the diff, commits, and files: the input is a code change, not a website. Not a product promo (/product-launch-video) or a no-PR topic explainer (/faceless-explainer). Unclear → /hyperframes.

1999AZZAR/designer-mcp

Port an existing Remotion (React) composition''s source to HyperFrames HTML. Use ONLY on an explicit ask to port/convert/migrate/translate a Remotion source — one-way, Remotion-only. A passing Remotion mention, reference-only code, or "make something like my Remotion video" is a fresh build (/general-video). Unclear → /hyperframes.

1999AZZAR/designer-mcp

Author a HyperFrames slideshow — a presentation, pitch deck, or interactive deck with discrete slides, fragment reveals, branching, hotspot navigation, and built-in presenter mode with speaker notes; also converts an existing page into a deck. Output is a navigable deck, not a rendered MP4. If the user didn't explicitly ask for a slideshow, confirm before authoring. Unclear → /hyperframes.

1999AZZAR/designer-mcp

Package an existing talking-head / interview / podcast video with timed, designed GRAPHIC OVERLAY cards — kinetic titles, lower-thirds, data callouts, quotes, side panels, picture-in-picture — synced to the transcript, on a 16:9 / 9:16 / 4:5 canvas of your choice; the clip plays untouched underneath. Trigger on "graphic overlays", "on-screen graphics", "package / dress up my video". Not plain subtitles (/embedded-captions). Unclear → /hyperframes.

1999AZZAR/designer-mcp

All animation knowledge for HyperFrames — atomic motion rules, multi-phase scene blueprints, scene transitions, broader motion-design techniques, AND the seven runtime adapters (GSAP default, plus Lottie, Three.js, Anime.js, CSS keyframes, Web Animations API, TypeGPU). Use for any motion or animation task: pick 2-4 rules and compose, or load a blueprint, or look up runtime-specific API (e.g. GSAP eases / Lottie player / Three.js mixer). Also covers auditing an existing composition's choreography (animation map) and 24 named text-animation effects. HyperFrames-native: single paused timeline, seek-safe, deterministic.

相关技能