Communitygithub.com

Alemoterani/auto-edit-hyperframes

技術目錄:五種速度匹配的 SEAM(縮放穿越、反向縮放穿越、切曲線、瀑布剪切、焦點模糊剪切)加上兩種場景內技術——瀑布入場(標題卡/段落開場的錯位抵達級聯)和輕推曲線(慢-快-慢三階段群組滑動)。涵蓋部分移動(約 12% 畫面)、透過鏡像 power4 緩動實現速度匹配、Z 軸縮放符號規則、按尺寸縮放的模糊(10px 文字 / 18-20px 全畫面)、逐字錯位剪切、按元素權重的級聯節奏,以及 10/65/25 滑動比例。在創作任何轉場、文字節拍交接、動態文字入場或群組重新定位前,請先閱讀此文件。

auto-edit-hyperframes 是什麼?

這是一份專為 AI Agent 設計的動態圖形技術目錄,定義了七種用於創作影片或動畫中文字、群組與場景轉場的精確動畫模式。核心原則是「在峰值速度處剪切,並讓剪切兩側的方向與速度匹配」,以實現流暢、電影般的視覺過渡。該技能詳細說明了五種「縫合」(SEAM)技術:Zoom-Through、Inverse Zoom-Through、Cut the Curve、Waterfall Cut 和 Rack-Focus Blur-Cut,以及兩種場景內技術:Waterfall Entry(錯位入場)和 Nudge Curve(群組滑動)。每個模式都提供了精確的 GSAP 動畫參數,包括持續時間、緩動函數、縮放、模糊、不透明度和位移值,並涵蓋了 Z 軸縮放符號規則和部分移動等關鍵概念。此目錄排斥常見的反模式,並提供了一個選擇指南,幫助使用者根據敘事目標(例如文字交換、重點展現或場景過渡)選擇合適的變體。該技能可部署於 Claude Code、Cursor 或 Codex 等平台,讓 AI Agent 能夠根據此規格自動生成精確且風格一致的動態轉場。

相容平台~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/Alemoterani/auto-edit-hyperframes/tree/HEAD/vendor/hyperframes/.agents/skills/cut-the-curve

在你喜歡的 AI 中提問

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

說明文件

切曲線 — 技術目錄

五種縫合(SEAM)技術,一個原則:在峰值速度處剪切,匹配剪切兩側的方向與速度——再加上兩種場景內技術(§6 入場,§7 滑動)。縫合法則——向量法則、電流、總帳、縫合門——位於 motion-doctrine 中;請先閱讀它。本技能提供參數與機制。所有 GSAP 程式碼範本(worker + registry):examples/gsap-implementation.md。

目錄

#技術範圍軸線用途
1縮放穿越(正向)場景內文字交換Z,朝向觀眾深入同一思路
2反向縮放穿越入場 / 重點節拍Z,遠離觀眾更大事物的降臨
3切曲線場景之間X / Y預設邊界,影片的「電流」
4瀑布剪切文字到文字的縫合X,逐詞大字節拍之間的詞級交接
5焦點模糊剪切同表面的狀態交換X / Y / Z你希望被「看見」的剪切——一種 DSLR 對焦拉動的華麗手法
6瀑布入場場景內抵達(非縫合)Y,從下方標題卡、段落開場、列表介紹
7輕推曲線場景內群組滑動(非縫合)X / Y重新定位已構成的群組以騰出空間

Z 軸方向是一個符號

「同一軸線」在 Z 軸上是不夠的——d(scale)/dt 的符號必須在剪切兩側匹配:

Z 向量退出縮放進入縮放變體
推進(正向)增大 1 → 1.2增大 0.75 → 1縮放穿越
拉回(反向)縮小 1 → 0.8縮小 1.25 → 1反向縮放穿越

禁止的鏡像:一個後退的退出被一個從小變大的進入所回應(拉回翻轉為推進——這是常見的情況,因為從小變大是預設的元素入場方式),以及一個推進的退出被一個過大的縮回所回應。這在縫合窗口(剪切 + ~0.5 秒)內約束了進入場景自身的入場方式,而不僅僅是包裝器的 tween:保持進入畫面處於構成狀態,或創作其入場以匹配符號。請根據縫合門規則 7 進行驗證。

模糊邏輯(所有 Z 變體)

主體峰值模糊原因
文字縮放(標題、詞組)10px20px 會使字母模糊——剪切看起來像故障,而非速度
全畫面表面(視窗、卡片、截圖)18–20px在大表面上使用較輕的模糊看起來像渲染問題

在交換幀處,兩側使用相同的峰值模糊。模糊應用於包裝器,絕非子元素。


1. 縮放穿越(正向)

Z 軸速度匹配剪切;絕不同時顯示兩個文字。 一切都在增大:退出的文字向攝影機加速,硬交換在峰值模糊處隱藏,進入的文字繼續增長到焦點平面。僅適用於標題和短語。總持續時間 ≈ 0.4 秒。

階段縮放模糊不透明度緩動持續時間
退出1 → 1.20 → 10px1 → 0.15power3.in(不透明度:單獨的 none tween)0.2 秒
剪切(tl.set)進入: 0.7510px退出: 0 / 進入: 0.15——
進入0.75 → 110 → 0px0.15 → 1expo.out0.5 秒

退出不透明度必須是其自身的線性 tween——power3.in 會讓不透明度過久地保持在接近 1。進入時所有屬性共用 expo.out。

2. 反向縮放穿越(反向)

拉回鏡像:退出的元素後退;進入的元素以過大的尺寸抵達(彷彿就在攝影機後面)並縮回焦點平面。一切都在縮小。用於入場/重點節拍——一句重點台詞、一個巨大的回應、一個保持的最終狀態——而非普通邊界。總持續時間 ≈ 0.7 秒(30% 退出 / 70% 進入)。

階段縮放模糊不透明度緩動持續時間
退出1 → 0.80 → 10px1 → 0.15power3.in(不透明度:單獨的 none tween)~0.2 秒
剪切(tl.set)進入: 1.2510px退出: 0 / 進入: 0.15——
進入1.25 → 110 → 0px0.15 → 1expo.out~0.5 秒

模糊為 10px 文字縮放;僅在兩側皆為全出血表面時使用 18–20px。

符號紀律: 進入場景以一個縮回包裝器內的構成畫面的形式抵達——在縫合窗口內不得有從小變大的介紹。階段性入場發生在縮回穩定之後,或者從 ≥1 開始並縮回。

3. 切曲線(預設場景邊界)

X/Y 速度匹配剪切——所有場景到場景邊界的預設方式,位於影片的「電流」中,而非一種強調。退出的主角物件向一個方向加速,剪切在運動中途發生,進入的主角物件繼續相同方向並減速。總持續時間 ≈ 0.6 秒;方向:左 / 右 / 上 / 下(預設為左)。

部分移動: 約 12% 的畫面(在 1920 解析度下 ≈230px)——絕非完整的離屏移動。

方向退出進入起點 → 終點
向左x: 0 → −230x: +230 → 0
向右x: 0 → +230x: −230 → 0
向上y: 0 → −230y: +230 → 0
向下y: 0 → +230y: −230 → 0

機制:

  • 鏡像緩動: 退出 power4.in + 進入 power4.out,相同距離和持續時間——一個 power4.inOut 的兩個半段,因此速度在剪切處完全匹配。
  • 淡出技巧: 退出不透明度在其移動的約 25–30% 處完成(淡出 ≈ 0.18–0.3 秒,相對於移動的 0.3–0.34 秒);進入在其路徑中途以約 0.35 的不透明度點燃。將最後一個淡出元素的消亡時間設定在剪切時刻——如果中間出現沒有元素移動的間隙,會感覺像死氣沉沉。
  • 退出 0.2–0.4 秒;進入 ≥ 退出。可選模糊 8–10px。
  • 舞台背景: #root 必須是不透明的(background: var(--canvas-deep, var(--canvas, #000)))——中間視窗的剪切會打開一個總和不透明度 < 1 的視窗,否則會閃爍白色(參見 seam-craft)。

push-slide 存在但違反了部分移動和中途運動階段;應優先使用切曲線。

4. 瀑布剪切(逐詞切曲線)

在詞粒度上的切曲線——文字到文字縫合中最強的向左剪切。退出詞彙在其自身的曲線上加速淡出;進入詞彙在半空中級聯進入——觀眾的眼睛跨越縫合時會感受到一道波浪。

範圍: 在一個多節拍合成(堆疊的全畫面 .beat 層)內由 worker 創作,不是 registry/injector 類型——它處理詞跨度的 tween,而非剪輯包裝器。進入和離開文字節拍區塊的邊界仍然會有一個正常的 registry 轉場。不計入 2–3 個轉場預算。

參數值原因
移動±230px (~12% 畫面)部分移動 + 速度 > 全畫面推動
退出0.34 秒 power4.in加速本身即為剪切
退出淡出0.18 秒,與 x 同時開始詞彙在大約 25–30% 的移動後消失——無拖尾
退出錯位+0.022 秒,依閱讀順序台詞被剝離,而非一個區塊滑動
進入0.3 秒 power4.out複合體的後半部分——速度匹配
進入起始不透明度0.35中途點燃;二進位 0→1 會顯得突兀
進入間隔0.05 秒 × 0.84 衰減加速級聯,最終解析為構成狀態

規則:

  • 每個鏈使用一個方向,順應電流。反向縮放穿越僅用於該鏈的入場節拍。
  • 在建構時將所有詞預設為 x: +230, opacity: 0——僅使用 immediateRender: false 會讓未啟動的詞在靜止時可見。
  • 一個短的初始節拍可能以整行方式退出:其淡出在剪切前約 0.02 秒結束,這樣當下一個詞點燃時它仍在拖尾——無死寂間隙。
  • 僅變換/不透明度(尋軌安全);適用不透明的舞台背景。

5. 焦點模糊剪切(可見的剪切)

剪切被看見的唯一變體:一個失焦模糊尖峰隱藏了單一幀的硬交換——一種手持 DSLR 的對焦拉動效果。用作同一視覺主題內相同表面的狀態交換的偶爾華麗手法;絕非預設邊界。

與其他變體的不同:退出的文字在剪切前保持完全不透明(模糊隱藏了交換——沒有提前淡出);緩動使用 power2.in / power2.out(柔和的光學感,而非動量感)。

規則:

  • 僅在敘事節拍時觸發,每約 8 秒 ≤ 一次;絕對不在字幕中途或保持期間使用。
  • 在峰值模糊處剪切(≥6px;峰值 8–12px,最大 ≤16–18px)——在模糊上升途中交換會顯露出剪切。
  • 一個微妙的縮放(約 1.06 的鏡頭呼吸效應)使其更合理。
  • 兩側方向相同——向量法則仍然適用。進入 ≥ 退出持續時間。
  • 模糊包裝器;絕對不要在一個元素上的同一個 tween 中同時使用模糊和不透明度(無頭合成錯誤);絕對不要直接模糊 <video>(請包裹它)。

6. 瀑布入場(場景內抵達——非縫合)

錯位抵達級聯:文字/元素從下方(一致的方向)快速進入,每個元素在前一個元素穩定之前就開始——一道加速的波浪,最終解析為一個構成的佈局。適用於標題卡、段落開場、列表/功能介紹。其縫合同類是 §4;請勿混淆它們的規則:

§6 入場(抵達)§4 瀑布剪切(縫合)
不透明度透過 tl.set 在入場時進行二進位 0→1——絕不淡出在路徑中途以 0.35 點燃——淡出本身就是速度技巧
預設軸線Y,從下方X,順應電流
退出方無詞彙在鏡像的 power4.in 上加速淡出

編排:

  • 重疊,不要排隊——下一個元素在前一個元素穩定後的 ±2 幀內開始;間隔在級聯中縮小;最後一個元素瞬間到位。
  • 速度隨權重變化——沉重/錨點元素移動得更遠更久;輕詞/標點符號快速進入:
參數錨點/沉重普通詞輕詞/標點
Y 偏移60–80px40–50px30–48px
持續時間0.16–0.20 秒0.13–0.16 秒0.10–0.13 秒
重疊0–2f 間隔1f 重疊1–2f 重疊
  • 緩動 power4.out(使用 expo.out 以獲得額外快速感);在入場時絕不使用 .inOut。
  • 每個級聯一個方向。
  • 將最後一個詞分割成片段以延長高潮;片段移動得更遠。
  • 穩定後,該群組通常會滑動以為下一個節拍騰出空間——那就是 §7。

7. 輕推曲線(場景內群組滑動——非縫合)

慢-快-慢地重新定位一個已構成的群組(詞行、卡片疊、列表)以顯示內容或騰出空間。沒有一個內建的緩動能產生它——power4.inOut 會突然停止。將三個 tween 在一個屬性上串聯起來:

階段緩動距離時間感受
1 斜坡進入power3.in~10%~20%幾乎不動——運動被感知,無震動
2 爆發none(線性)~65%~18%~2 倍平均像素/幀——有目的性
3 尾巴power4.out~25%~62%衰減蠕動至靜止——消除撞擊感

規則:

  • 尾巴的時間是斜坡進入的 ≥3 倍。如果仍然有撞擊感:延長尾巴的時間(而非距離)或使用 power5.out。
  • 階段 2 保持線性——對其施加緩動會失去爆發的對比感。
  • 在階段 2 期間揭示新內容——爆發掩蓋了其出現。
  • 垂直方向使用相同比例;按比例調整距離,保持時間比例。

選擇變體

縮放穿越反向縮放穿越切曲線瀑布剪切
範圍場景內文字交換入場/重點節拍場景之間文字到文字縫合
Z 符號 / 軸線增大(推進)縮小(拉回)X / YX,逐詞
移動/縮放1→1.2,然後 0.75→11→0.8,然後 1.25→1±230px±230px
峰值模糊10px 文字 / 18–20 全畫面10px 文字 / 18–20 全畫面可選 8–10px無
緩動power3.in / expo.outpower3.in / expo.outpower4.in / power4.outpower4.in / power4.out
感受穿透抵達被側向攜帶跨越縫合的波浪

反模式

不要這樣做要這樣做原因
在縮放穿越中兩個文字都可見在模糊峰值處進行硬剪切文字重疊違反了物理感——它變成了一個溶解
退出時使用 expo.inpower3.in(不透明度:線性)expo.in 起始太慢——文字在剪切時仍在淡出
深度 < 0.75 或 > 1.25保持在此範圍內超出範圍會破壞攝影機的物理感,轉變為誇張的圖形效果
進入時使用 power4.inOutexpo.out(或 power4.out).inOut 在起始處有減速段——毀掉了速度匹配
交換 X/Y 方向的退出/進入偏移符號在退出和進入中使用相同方向如果退出向左移動,進入也必須向左移動——方向翻轉破壞了縫合
在剪切的同一側模糊不同尺寸在剪切兩側使用相同的峰值模糊視覺上的速度因此是連續的——模糊變化會感覺像在不同的幀率下

常見問題與檢查

剪切看起來不對:「一個文字溶解成另一個」 → 你讓兩個文字同時可見。在縮放穿越中,退出文字在剪切時必須處於 < 0.2 不透明度,且進入文字從 0 不透明度開始。檢查不透明度值。

標題上的模糊看起來像故障 → 你使用了 20px 模糊。文字縮放時,使用 10px 峰值。僅對全畫面表面(視窗、卡片、截圖——而非文字)使用 18–20px。

反向縮放穿越感覺不對 → 檢查符號:你是在推入還是拉出?反向縮放穿越是拉回:退出縮小,進入以過大尺寸抵達並縮回。如果你看到進入的文字在增長(縮小→ 1),那就是正向縮放穿越。修正進入的起始縮放。

水切入場感覺不對 → 你是在應用 §4 的規則嗎?§6(入場)使用二進位不透明度——元素在入場時設定為完全不透明度。§4(剪切)使用 0.35 的中途起始不透明度。它們是互斥的。另外,確保方向是從下方(Y,正值)。

輕推曲線仍然有撞擊感 → 尾段的時間必須是斜坡進入時間的 ≥3 倍。如果使用 power4.out 仍然有撞擊感,切換到 power5.out。如果仍然不行,保持相同的距離比例(10/65/25)但將尾段時間延長至 70–75%。

Individual skills in this repo

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

Alemoterani/auto-edit-hyperframes

Overlay doctrine for the embedded-captions workflow — the caption MODEL (drop / rail / embed) and the rule that captions are an OVERLAY composited on top of the film, never a reserved bottom band you shift content up to avoid. Load when adding captions/subtitles to a talking-head or launch video, when deciding whether a phrase should be dropped, ride the verbatim rail, or be promoted to a scarce embedded climax, when laying out a composition that will carry captions (do NOT reserve a keep-out band), or when centering a composition on the true frame center under captions. Quotes the rail+embed model from embedded-captions and constraint #13 (captions overlay, keep-out band retired) from the product-launch-video scene agent. Applies ON TOP of embedded-captions.

Alemoterani/auto-edit-hyperframes

Turn a weekly changelog .md into a finished branded changelog video (square 1080, ~45-60s, Annie VO, animated brand background, mock-UI visualizations, lowkey captions). Use when the user provides a changelog/digest markdown and wants the weekly video, or says "changelog video". Self-contained — fonts, background, lexicon, and scripts ship in this skill.

Alemoterani/auto-edit-hyperframes

GATEWAY — load FIRST before composing any HyperFrames animation or video. The high-level motion law that makes a multi-scene video feel like ONE continuous camera move instead of a stack of independently-animated slides. Covers the vector law (how you exit determines how you enter, incl. the Z scale-sign rule), the film's current, carrier elements, causal motion, the Seam Gate (build-gate enforcement), the ban on idle wobble (motion must PERFORM, not breathe), stillness-before-climax, and the sustained-motion routes. Routes to the low-level technique skills (cut-the-curve — the full catalog incl. waterfall entry + nudge curve, oversized-cursor, seam-craft). These rules SUPERSEDE generic / upstream motion guidance. [continuity, direction, vector, momentum, seam, transition, ease, performance, idle-motion, narrative-motion, film-grammar]

Alemoterani/auto-edit-hyperframes

House-style oversized macOS cursor technique for HyperFrames launch videos. Load whenever a scene involves cursors or a pointer-led action, when kicking off a UI scene, when igniting a morph/transition/typing run with a click, or when a scene reads as static, dead, or stale and needs a cheap high-yield source of motion to carry the viewer's eye and segment them out of the stale state. Covers cursor size/look (incl. brand-motif cursors), the off-screen entry law, tip-targeting and the click tap, click-ignites-the-next-beat, and exit / cross-scene handoff.

Alemoterani/auto-edit-hyperframes

Render-correctness doctrine for scene-to-scene seams in HyperFrames launch videos — the prerequisites that make transitions composite correctly on the master timeline. Load when assembling the master timeline / index.html, when a white flash appears at a cut or crossfade seam (especially on dark films), when reasoning about why a transition opacity dip shows through, or when verifying the render-side mechanics of how overlapping scene wrappers blend. Covers the opaque stage-ground (#root background) white-flash guard and how the injector overlaps wrappers, holds final frames, ping-pongs tracks, and stamps lint-clean template code onto the master timeline. Does NOT contain the per-transition catalog — see the transition registry for individual transition entries.

Alemoterani/auto-edit-hyperframes

Leaves sweep through the frame and part to reveal the headline. HyperFrames block, 1920×1080, 12s, 11 variables.

Alemoterani/auto-edit-hyperframes

A tiled headline surface flips cell by cell under a sweeping depth field to reveal the rear headline. HyperFrames block, 1920×1080, 8s, 18 variables.

Alemoterani/auto-edit-hyperframes

A chain of bevelled cuboids rides a travelling wave as a content carousel. HyperFrames block, 1920×1080, 6.666666666666667s, 40 variables.

Alemoterani/auto-edit-hyperframes

An orbiting camera follows an ice logo as it breaks apart, reforms into two text moments, and fades. HyperFrames block, 1920×1080, 22.5s, 216 variables.

Alemoterani/auto-edit-hyperframes

Glass shards fly in through fog and tile themselves into the headline. HyperFrames block, 1920×1080, 12.16s, 19 variables.

Alemoterani/auto-edit-hyperframes

A single feature card orbits a dot sphere on approved Blender camera motion. HyperFrames block, 1920×1080, 10s, 4 variables.

Alemoterani/auto-edit-hyperframes

A wireframe portal bursts open, the title comes through, then its letters swap into a second phrase. HyperFrames block, 1920×1080, 8s, 9 variables.

Alemoterani/auto-edit-hyperframes

Add captions or subtitles to an existing single-subject talking-head video without editing the footage. Use for plain verbatim captions, cinematic captions embedded behind the subject, VFX captions, “炸/特效/酷炫字幕,” or a named identity from the 35-style catalog. Route by visual identity, not by backend engine. The quiet `anchor` rail is the default; embed every word only when the user explicitly wants a fully cinematic treatment. The workflow runs locally end to end, including transcription and subject matting; split multi-shot footage before applying it.

Alemoterani/auto-edit-hyperframes

Turn arbitrary text — an article, notes, a topic, a brief — into a faceless explainer video: there is no site or footage to capture, so the visuals are invented per scene (typography, abstract graphics, diagrams, data-viz). Use for topic explainers, concept breakdowns, how-tos, listicles. Not a video built from a website (/product-launch-video — promo or tour). Unclear → /hyperframes.

Alemoterani/auto-edit-hyperframes

Import Figma content into a HyperFrames composition — rendered assets, brand tokens, components, storyboard sections → reconstructed motion (frames read as states, not slides) (REST/CLI), connector-assisted motion when available, and shaders from a connector or native export. Use when the user pastes a figma.com link or asks to bring a Figma design, frame, logo, brand, or animation into a video/composition.

Alemoterani/auto-edit-hyperframes

Author or edit a custom HyperFrames composition when no specialized workflow fits, or when BRIEF.md sets flow: companion. Use for longer or multi-scene pieces, brand and sizzle reels, montages, static loops, static title cards, footage remixes, and freeform builds. Use motion-graphics instead for a short unnarrated motion-first unit, including an animated title. Route fresh creation through hyperframes before using this skill.

Alemoterani/auto-edit-hyperframes

All animation knowledge for HyperFrames — atomic motion rules, multi-phase scene blueprints, scene transitions, broader motion-design techniques, AND the seven runtime adapters (GSAP default, plus Lottie, Three.js, Anime.js, CSS keyframes, Web Animations API, TypeGPU). Use for any motion or animation task: pick 2-4 rules and compose, or load a blueprint, or look up runtime-specific API (e.g. GSAP eases / Lottie player / Three.js mixer). Also covers auditing an existing composition's choreography (animation map) and 24 named text-animation effects. HyperFrames-native: single paused timeline, seek-safe, deterministic.

Alemoterani/auto-edit-hyperframes

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

Alemoterani/auto-edit-hyperframes

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.

Alemoterani/auto-edit-hyperframes

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.

相關技能