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 從公開儲存庫中收錄這些內容。

檢舉或申請下架