Communitygithub.com

Manavv007/S.A.R.A.L.-Scheme-Access-Retrieval-Analysis-Layer-

HyperFrames 動畫知識庫 — 原子級運動規則、多階段場景藍圖、場景轉場、廣泛的動態設計技術,以及七種運行時轉接器。適用於任何動畫任務。

S.A.R.A.L.-Scheme-Access-Retrieval-Analysis-Layer- 是什麼?

此技能為 HyperFrames 平台提供完整的動畫知識與實作指南,涵蓋原子級運動規則、多階段場景藍圖、場景轉場技術、廣泛的動態設計模式,以及七種運行時轉接器的 API 參考。它能幫助開發者快速組合 2-4 條運動規則以建構精簡的動畫,或載入預先設計的場景藍圖以節省編排複雜多階段動畫的時間。支援的運行時包含 GSAP(預設)、Lottie、Three.js、Anime.js、CSS 關鍵影格、Web Animations API 及 TypeGPU/WebGPU,且允許多個運行時在同一組合中並存。所有動畫都遵循 HyperFrames 核心的確定性原則:使用單一暫停的時間軸,避免非預期的重複或隨機行為,確保動畫精確可預測。

相容平台~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/Manavv007/S.A.R.A.L.-Scheme-Access-Retrieval-Analysis-Layer-/tree/HEAD/.agents/skills/hyperframes-animation

在你喜歡的 AI 中提問

開啟一個已預先載入此 Agent Skill 的新對話。

說明文件

HyperFrames 動畫

所有動畫知識整合於此技能:規則(原子級配方)、藍圖(多階段場景模板)、轉場(場景間切換)、技術(廣泛的動態設計模式)以及轉接器(各運行時 API)。

關於組合合約(資料屬性、子組合、確定性)請參閱 hyperframes-core。

預設:組合原子規則

從 rules-index.md 挑選 2-4 條規則,用單一暫停的 GSAP 時間軸串接起來即可。這比從藍圖開始寫更快,產生的程式碼也更少。

何時載入藍圖

  • 場景符合現有的預先設計多階段模板(品牌揭示、社交證明、示範頁面滾動焦點等),且重複使用其階段管線能節省實際創作的時間
  • 你需要對複雜的 4-5 階段編排取得可執行的真實程式碼

藍圖位於 blueprints-index.md。每項條目指向 blueprints/<id>.md(配方)和 examples/<id>.html(可執行範例)。請不要預先讀取;只在確定需要場景層級編排時才載入。

路由

想做的事情…請閱讀
依觸發條件/標籤挑選原子運動模式rules-index.md
閱讀某一條規則的完整 HTML / CSS / GSAP 配方rules/<name>.md
挑選多階段場景模板blueprints-index.md
閱讀某一藍圖的完整配方blueprints/<id>.md + examples/<id>.html
編寫場景轉場(CSS 驅動,用於兩個片段之間)transitions/overview.md, transitions/catalog.md
查閱廣泛的動態設計技術techniques.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
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
命名文字動畫效果(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,禁止對後續場景剪輯使用 gsap.set,禁止 display / visibility 動畫,禁止在 async / setTimeout / Promise 內部建構時間軸)。此處不再重述。

基於核心合約的動畫創作補充:

  • 預先計算的佈局常數 — 永遠不要在補間動畫時從 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。用於在創作後稽核編排(死區、交錯一致性、生命週期警告)。

參見

  • hyperframes-core — 組合結構、資料屬性、子組合、確定性渲染合約
  • hyperframes-creative — 色板、字型、敘事、節奏規劃(非動畫的創意方向)
  • hyperframes-cli — npx hyperframes lint / validate / inspect / preview / render

Individual skills in this repo

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

Manavv007/S.A.R.A.L.-Scheme-Access-Retrieval-Analysis-Layer-

The fallback workflow for authoring custom HyperFrames video compositions at any length or format — longer or multi-scene pieces, brand / sizzle reels, montages, title cards, static loops, and freeform compositions. Input- and length-agnostic. If a specialized workflow clearly fits the input — a marketed product, a website, a topic explainer, a GitHub PR, existing footage, a short motion graphic, or a Remotion port — prefer it (see /hyperframes); use this only as the general fallback when none fit.

Manavv007/S.A.R.A.L.-Scheme-Access-Retrieval-Analysis-Layer-

HyperFrames CLI dev loop. Use when running npx hyperframes init, add, catalog, capture, lint, validate, inspect, layout, snapshot, preview, play, render, publish, lambda, doctor, browser, info, upgrade, skills, compositions, docs, benchmark, telemetry, transcribe, tts, or remove-background, or when troubleshooting the HyperFrames build/render environment. Entry point for AWS Lambda cloud rendering (`hyperframes lambda deploy / render / progress / destroy / policies`).

Manavv007/S.A.R.A.L.-Scheme-Access-Retrieval-Analysis-Layer-

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.

Manavv007/S.A.R.A.L.-Scheme-Access-Retrieval-Analysis-Layer-

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

Manavv007/S.A.R.A.L.-Scheme-Access-Retrieval-Analysis-Layer-

Capture a general website/URL and turn it into a HyperFrames video (site tour, showcase, or social clip from the site's own visuals). Uses headless Chrome screenshots + brand assets. Use when intent is general — portfolio/blog/landing-page showcase or social clip from the site. NOT for: product/SaaS launch or promo (→ /product-launch-video, even from a URL); topic explainer with no site (→ /faceless-explainer); GitHub PR (→ /pr-to-video); adding captions to existing video (→ /embedded-captions); short unnarrated page-highlight motion graphic (→ /motion-graphics). Unclear launch-vs-general-site? Ask one question or start at /hyperframes.

Manavv007/S.A.R.A.L.-Scheme-Access-Retrieval-Analysis-Layer-

Audio and media assets for HyperFrames compositions, produced by one shared audio engine (`scripts/audio.mjs`) — multi-provider TTS (HeyGen / ElevenLabs / Kokoro local), background music + sound effects (HeyGen audio-library retrieval by default, with local Lyria / MusicGen BGM generation and a bundled SFX library as the no-credential fallback), Whisper transcription, background removal, and caption authoring. Use for voiceover / TTS, BGM, SFX / sound effects, transcription, captions / subtitles / lyrics / karaoke / per-word styling, voice + provider selection, and music-mood prompting.

Manavv007/S.A.R.A.L.-Scheme-Access-Retrieval-Analysis-Layer-

S.A.R.A.L. is an advanced AI-powered platform designed to bridge the "information gap" between rural Indian citizens and government welfare. While thousands of schemes exist, the complex language of official PDFs often makes them inaccessible to the common man.

相關技能