Communitygithub.com

vijayahnlu/reels

HyperFrames 所有动画知识:原子运动规则、多阶段场景蓝图、场景过渡、更广泛的运动设计技术以及七种运行时适配器(默认 GSAP,以及 Lottie、Three.js、Anime.js、CSS 关键帧、Web 动画 API、TypeGPU)。可用于任何运动或动画任务:选择 2-4 条规则进行组合,或加载蓝图,或查阅特定运行时的 API。还涵盖对现有合成动画编排的分析以及 24 种具名文本动画效果。HyperFrames 原生:单个暂停时间线,可安全定位,确定性。

reels 是什么?

这个技能(vijayahnlu/reels)是 HyperFrames 框架中所有运动动画知识的集大成者。它提供原子级运动规则(可组合 2-4 条规则)、多阶段场景蓝图的加载与实现、场景过渡、广泛的运动设计技术,以及七种运行时适配器(默认 GSAP,以及 Lottie、Three.js、Anime.js、CSS 关键帧、Web 动画 API、TypeGPU)。用户可以按照快速组合原子规则或加载预设计蓝图的方式来工作。该技能还能分析现有合成的动画编排(生成动画图谱 JSON),并提供 24 种具名文本动画效果。其核心约束要求一个单一暂停的时间线,禁止随机性,并依赖于 pre-calculated 布局常量。该技能兼容所有 HyperFrames 组件,可与 hyperframes-core、hyperframes-creative 等协同工作,并支持通过 CLI 检查、预览和渲染。

兼容平台~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/vijayahnlu/reels/tree/HEAD/.claude/skills/hyperframes-animation

在你喜欢的 AI 中提问

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

文档

**插件安装:**在执行 setup 或 freshness 命令之前,如果此技能位于 HyperFrames 插件内,请遵循插件执行规则。独立安装保留下面的更新说明。

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 动画 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
具名文本动画效果(24 个 ID,通过外部 animate-text 技能)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(除非有有限的根 data-duration),无页面加载时对后续场景片段的 gsap.set,无 display 或原始 visibility 补间,并且仅在时间线完全构建后注册,包括在异步回调(例如 document.fonts.ready)内部构建时)。核心仍允许 GSAP autoAlpha 和在明确的时间线边界处零持续时间的可见性设置。仅对非片段元素或片段内的包装器使用这些例外;框架拥有 .clip 生命周期。不要在此重述完整的契约。

在核心契约基础上新增的动画工艺规则:

  • 预先计算的布局常量 —— 绝不在补间时从 getBoundingClientRect() 推导位置。补间时的 DOM 测量会不同步,因为渲染器并行采样;在合成设置时计算一次坐标并重复使用。
  • 空间运动仅使用 GSAP 变换别名(x、y、scale、rotation)。核心的允许列表也允许 opacity / color / backgroundColor / borderRadius 用于非空间属性补间——但绝不使用 width / height / top / left 进行布局更改。

脚本

node <SKILL_DIR>/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 9 individual skills — each has its own dedicated page.

vijayahnlu/reels

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`.

vijayahnlu/reels

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, history, clean, 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.

vijayahnlu/reels

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.

vijayahnlu/reels

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`.

vijayahnlu/reels

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.

vijayahnlu/reels

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).

vijayahnlu/reels

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.

vijayahnlu/reels

Use when working with a person on a HyperFrames project in Studio: first, whether their message asks for a change at all (questions, loose ideas and "don't change anything" get an answer and a plan, not an edit); for a new film, the plan, storyboard and build order that the HyperFrames launch films follow; and 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`.

vijayahnlu/reels

Agent Media OS for 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. When the host app provides its own music or sound-effect tools, use those for music and sound effects; `resolve --type bgm|sfx` needs the heygen CLI. When `HEYGEN_API_BASE` is set, HeyGen calls go through that host with no CLI sign-in.

相关技能