Communitygithub.com

剪斷曲線 — 技術目錄

五種速度匹配的無縫轉場技術(推近穿越、反向推近穿越、剪斷曲線、瀑布剪輯、對焦模糊剪輯)加上兩種場景內技術(瀑布進場與微推曲線),涵蓋局部移動、Z軸比例符號規則、尺寸縮放模糊、逐字交錯剪輯、級聯節奏與滑動比例。

剪斷曲線 — 技術目錄 是什麼?

這份技能目錄定義了一套精密的動態設計系統,專注於在影片或動畫中實現「速度匹配」的無縫轉場。其核心原則是:在剪輯點處,確保剪輯前後的元素具有相同的運動方向和速度,從而創造出流暢且具有電影感的視覺流。目錄詳細說明了五種主要的「無縫」轉場技術,包括推近穿越、反向推近穿越、剪斷曲線、瀑布剪輯和對焦模糊剪輯,每種技術都有明確的應用場景、軸向規範和GSAP參數模板。此外,還介紹了兩種場景內技術:瀑布進場(用於標題卡和段落開場的交錯進場)和微推曲線(用於群組元素的慢-快-慢重新定位)。系統特別強調了Z軸運動中的比例符號規則、局部移動(約12%畫面)的速度匹配、以及根據元素類型(文字或全幀)調整模糊強度的邏輯。這份技能適用於Claude Code、Cursor等AI編碼代理,通過精確的動畫參數控制,幫助開發者快速生成具有電影級質感的動態設計,避免常見的反模式。

相容平台~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/Drama2557/4RealDigital-Video-Studio/tree/HEAD/.agents/skills/cut-the-curve

在你喜歡的 AI 中提問

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

說明文件

剪斷曲線 — 技術目錄 是做什麼的?

五種無縫技術,一個原則:在速度峰值處剪輯,確保剪輯兩側的方向和速度一致 — 加上兩種場景內技術(§6 進場,§7 滑動)。 無縫法則 — 向量法則、電流、總帳、無縫閘門 — 位於 motion-doctrine 中;請先閱讀該文檔。本技能涵蓋參數和機制。 所有 GSAP 程式碼模板(工作器 + 註冊表):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 秒)進入場景的自身進入方式,而不僅僅是包裝補間:保持進入幀的構成,或編寫其進入方式以匹配符號。請根據無縫閘門規則 7 進行驗證。

模糊邏輯(所有 Z 變體)

主體峰值模糊原因
文字比例(標題、詞組)10px20px 會塗污字母形態 — 剪輯看起來像故障,而非速度
全幀表面(視窗、卡片、螢幕截圖)18–20px在較大表面上的較輕模糊看起來像渲染問題

交換幀處兩側的峰值模糊相同。模糊包裝層(WRAPPER),絕不模糊子元素。


1. 推近穿越(正向)

Z 軸速度匹配剪輯;絕不讓兩段文字同時可見。 一切都在放大:退出的文字加速朝向相機,在峰值模糊處進行硬交換,進入的文字繼續放大進入焦平面。僅適用於標題和短語。總計約 0.4 秒。

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

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

2. 反向推近穿越(反向)

拉回鏡像:退出元素後退;進入元素以過大比例到達(彷彿就在相機後方)並縮回至焦平面。一切都在縮小。用於到來 / 回報節拍 — 一句回報台詞、一個巨大的回應、一個持久的結束狀態 — 絕不用於普通邊界。總計約 0.7 秒(30% 退出 / 70% 進入)。

階段比例模糊不透明度緩動函數持續時間
退出1 → 0.80 → 10px1 → 0.15power3.in(不透明度:獨立的 none 補間)約 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 秒 vs 移動 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 圖層)內編寫,不是註冊表/注入器類型 — 它補間的是文字跨度,而非剪輯包裝層。進入和離開文字節拍區塊的邊界仍會獲得正常的註冊表轉場。不計入 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 鏡頭呼吸)使其感覺像光學效果。
  • 兩側方向相同 — 向量法則仍然成立。進入持續時間 ≥ 退出持續時間。
  • 模糊包裝層;切勿在一個元素上將模糊 + 不透明度放在同一個補間中(無頭合成錯誤);切勿直接模糊 <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–2 幀間隔1 幀重疊1–2 幀重疊
  • 緩動函數 power4.out(expo.out 用於額外乾脆);進入時切勿使用 .inOut。
  • 每個級聯只有一個方向。
  • 將最後一個字詞分成片段以延長高潮;片段移動更遠。
  • 穩定後,群組通常會滑動以為下一個節拍騰出空間 — 那是 §7。

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

對已構成群組(文字行、卡片疊、列表)的慢-快-慢重新定位,以揭示內容或騰出空間。沒有一個內建的緩動函數能產生它 — power4.inOut 會戛然而止。將三個補間鏈接在同一個屬性上:

階段緩動函數距離時間感受
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–20px文字 10px / 全幀 18–20px可選 8–10px無
緩動函數power3.in / expo.outpower3.in / expo.outpower4.in / power4.outpower4.in / power4.out
感覺深入推進抵達被側向攜帶跨越無縫的波浪

反模式

不要這樣做
在 Z 軸剪輯上混合符號 — 推接拉的鏡像違反了向量法則
在瀑布剪輯的入口使用二進制不透明度 0→1 — 它需要 0.35 的中途點亮
對「剪斷曲線」使用全屏移動 — 永遠不要超過約 12% 的畫面
在「微推曲線」的外推半段上使用緩動 — 保持第 2 階段線性
將對焦模糊剪輯用作預設場景邊界 — 保留給偶爾的華麗效果
在單個元素上同時補間模糊和不透明度
在無縫窗口內(剪輯前後約 0.5 秒)向進入場景添加從小變大的介紹

參考:motion-doctrine(無縫法則 — 向量、電流、閘門);examples/gsap-implementation.md(工作器 + 註冊模板)。

Individual skills in this repo

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

Drama2557/4RealDigital-Video-Studio

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.

Drama2557/4RealDigital-Video-Studio

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.

Drama2557/4RealDigital-Video-Studio

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.

Drama2557/4RealDigital-Video-Studio

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.

Drama2557/4RealDigital-Video-Studio

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.

Drama2557/4RealDigital-Video-Studio

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.

Drama2557/4RealDigital-Video-Studio

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

Drama2557/4RealDigital-Video-Studio

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. Also covers Tailwind projects and the STORYBOARD.md / SCRIPT.md plan formats. Read before writing composition HTML.

Drama2557/4RealDigital-Video-Studio

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

Drama2557/4RealDigital-Video-Studio

Install, discover, and wire registry blocks and components into HyperFrames compositions. Use when running hyperframes add or hyperframes catalog, installing one item or every block matching a tag, wiring an installed item into index.html, or working with hyperframes.json. Covers discovery, install locations, block sub-composition wiring, component snippet merging, and authoring a new block or component to contribute upstream (idea → scaffold → validate → PR).

Drama2557/4RealDigital-Video-Studio

Agent Media OS, the single skill for every media need in a HyperFrames project. Resolve BGM, SFX, image, icon, brand logo, voice, color grade, or LUT into a frozen local file or paste-ready block + ledger record (one verb, `resolve`); generate via TTS / music / image models when the catalog misses; produce voiceover, transcription, captions, and background removal through one shared audio engine; operate on media (cut / reframe / transform); and reuse assets across projects. Also use for vague feedback that real footage looks dark, flat, boring, should feel retro/camcorder/print/ASCII, needs privacy, or needs a media reveal.

Drama2557/4RealDigital-Video-Studio

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]

Drama2557/4RealDigital-Video-Studio

A short, design-led motion graphic where motion is the message — kinetic typography, stat count-up, chart/data-viz hit, logo sting / brand lockup, lower-third / callout / social overlay, animated map (highlight regions, connect places, zoom to a location), animated tweet / news-article / headline, webpage / UI animation (scroll, cursor, callouts), or fusing a real image's geometry into a chart. Usually under 10s (up to ~30s), no narration or live-action subject; renders to MP4 or transparent overlay. Longer / narrated / multi-scene → /general-video. Unclear → /hyperframes.

Drama2557/4RealDigital-Video-Studio

Turn a music track (an audio file, a video to pull audio from, or a track generated from a mood brief) into a beat-synced video — lyric video, slideshow, or kinetic promo. The music drives all pacing; any user-supplied images/videos are cut onto the same beat grid, and a complete video needs zero assets. Narrated pieces → the input-matched workflow (see /hyperframes). Unclear → /hyperframes.

Drama2557/4RealDigital-Video-Studio

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.

Drama2557/4RealDigital-Video-Studio

Turn a GitHub pull request (a PR URL, owner/repo#N, or 'this PR' in a checked-out repo) into a code-change explainer video — changelog, feature reveal, fix, or refactor walkthrough built from the diff, commits, and files: the input is a code change, not a website. Not a product promo (/product-launch-video) or a no-PR topic explainer (/faceless-explainer). Unclear → /hyperframes.

Drama2557/4RealDigital-Video-Studio

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.

Drama2557/4RealDigital-Video-Studio

Author a HyperFrames slideshow — a presentation, pitch deck, or interactive deck with discrete slides, fragment reveals, branching, hotspot navigation, and built-in presenter mode with speaker notes; also converts an existing page into a deck. Output is a navigable deck, not a rendered MP4. If the user didn't explicitly ask for a slideshow, confirm before authoring. Unclear → /hyperframes.

Drama2557/4RealDigital-Video-Studio

Package an existing talking-head / interview / podcast video with timed, designed GRAPHIC OVERLAY cards — kinetic titles, lower-thirds, data callouts, quotes, side panels, picture-in-picture — synced to the transcript, on a 16:9 / 9:16 / 4:5 canvas of your choice; the clip plays untouched underneath. Trigger on "graphic overlays", "on-screen graphics", "package / dress up my video". Not plain subtitles (/embedded-captions). Unclear → /hyperframes.

Drama2557/4RealDigital-Video-Studio

Agent skill / project related to launch or product demo video: Drama2557/4RealDigital-Video-Studio

相關技能