Svg Character Animation

calesthio/OpenMontage/.agents/skills/svg-character-animation

作者 calesthio9327439db69021ab4b0e2776729bf3b58fdb5a87MIT65K 个星标收录于 2026年10月9日更新于 2026年10月9日仓库5天前更新

Animate SVG character rigs with GSAP, CSS transforms, Remotion frame control, and HyperFrames-compatible browser previews.

仅含说明Design & Creative
AI 生成的概览

指导使用 GSAP 时间轴、CSS 变换、Remotion 帧控制和 HyperFrames 预览来制作 SVG 角色骨骼动画。

功能
该技能提供为 SVG 部件组成的角色骨骼制作动画的说明。内容涵盖运行时规则,例如动画化变换而非布局、使用时间轴编排多部件动作节拍,以及通过 svgOrigin 设置稳定轴心。它还给出浏览器、Remotion 和 HyperFrames 的示例模式,并附有关于轴心、面部特征、姿势保持和帧采样的质量检查清单。
适用场景
适用于为 SVG 部件组成的角色骨骼制作动画。适合需要 GSAP 时间轴、基于变换的运动,或在 Remotion 与 HyperFrames 兼容浏览器预览中进行逐帧播放的工作。
运行要求
不附带脚本,仅为说明文档。假定已具备 GSAP、Remotion 和 HyperFrames 兼容的浏览器工具,并引用了外部文档链接。

SVG Character Animation

Use this skill when animating character rigs made from SVG parts.

Runtime Rules

  • Animate transforms (x, y, scale, rotation) rather than layout.
  • Use timelines for multi-part acting beats.
  • For SVG elements, use stable pivots (svgOrigin or correctly scoped transform origins).
  • In Remotion, do not let GSAP advance with requestAnimationFrame; drive a paused timeline from the current frame.

Browser Pattern

js
gsap.set("#arm_right", { svgOrigin: "390 310" });const tl = gsap.timeline({ defaults: { ease: "power2.inOut" } });tl.to("#head", { rotation: -8, duration: 0.2 })  .to("#arm_right", { rotation: 35, duration: 0.4 }, "<");

Remotion Pattern

tsx
const frame = useCurrentFrame();const progress = frame / durationInFrames;timeline.progress(progress);

HyperFrames Pattern

Use HTML/SVG/GSAP components with deterministic timelines and validate via the HyperFrames CLI before final render.

Quality Checklist

  • Parts stay connected at pivots during motion.
  • Blinks, gaze, and mouth shapes are separate enough to read.
  • Pose holds are long enough to communicate emotion.
  • Frame sampling shows meaningful deltas, not frozen animation.

Sources

来源与署名

来源:calesthio/OpenMontage位于.agents/skills/svg-character-animation提交9327439

许可证: MIT

内容归原作者所有。SourceWeft 从公开仓库中收录这些内容。

举报或申请下架