跳到正文
Skillpedia
动效与动画75k · #2691

svg-character-animation

它能做什么

这项技能说明如何让由多个独立 SVG 部件组成的卡通角色动起来。适合希望在网页或视频项目中实现简单、清晰角色动作的设计师和视频制作者。

适用场景

  • ✓当你的角色由独立的 SVG 部件绘制,并且你希望它的手臂或头部能够运动时。
  • ✓当你希望角色通过定时动作眨眼、环顾或改变表情时。
  • ✓当你正在为 Remotion 或网页视频制作角色动画时。

技能链接

https://github.com/calesthio/OpenMontage/blob/main/.agents/skills/svg-character-animation/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/calesthio/OpenMontage/blob/main/.agents/skills/svg-character-animation/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

📦 包含此技能的技能包

可以这样问 AI

“请让我的卡通角色挥动右臂并点点头。”

每周 5 个新技能,1 分钟读完。

工作原理

它会通过改变每个部件相对固定支点的位置、缩放和旋转来让其运动,并把这些动作排列在时间线中,使动作按正确顺序发生。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

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

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

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

常见问题

它会帮我画角色吗?

不会。它假设你已经用 SVG 部件做好了角色,重点是让这些部件动起来。

支持哪些工具?

它涵盖用于浏览器动画的 GSAP,以及用于逐帧视频的 Remotion。

部件在运动时,如何保持它们连接?

这项技能建议使用稳定的支点,让每个部件从正确的位置旋转。

详情

作者的原始描述

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

repo: calesthio/OpenMontage

热度

GitHub 星标
75k
排名
#2691
许可证
AGPL-3.0
更新时间
2026/10/28

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能