Communitygithub.com

motion-effects

從頭開始為您的品牌打造 16 種高級動態效果之一,產出一個 8 秒循環的 HTML 檔案,並支援 `window.seek(秒數)` 以實現幀精確的 MP4 或 GIF 匯出。

motion-effects 是什麼?

此技能讓您能像動態設計師一樣,根據指定效果與品牌素材,自動生成 16 種高級動畫的完整 HTML 檔案。每個效果都附有詳細的食譜(規格),涵蓋起始狀態、結束狀態、時間軸以及讓動畫看起來更高級的關鍵細節。支援的動畫類型包含介面過場(按鈕到播放器、搜尋到結果)、數據轉換(圖表變形、儀表板縮放)、類型效果(遮罩文字、彈性文字)以及系統動畫(視角位移、玻璃焦點、粒子標誌)等。技能會自動將您提供的品牌顏色、字型和真實內容嵌入到一個 8 秒循環、可離線運作的 HTML 檔案中,並內建 `window.seek(秒數)` 功能,方便第三方工具(如 HyperFrames)進行幀精確的 MP4 或 GIF 匯出。輸出前會自動檢查 7 個關鍵幀點,確保迴圈完美、動畫流暢、品牌一致且無內容裁切。

相容平台✓Claude Code~Codex CLI✓Cursor
npx skills add https://github.com/charlie947/motion-graphics-skills/tree/main/skills/motion-effects

在你喜歡的 AI 中提問

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

說明文件

動態效果,用您的品牌打造

16 種效果,讓產品、數字或文字的動態看起來像是由專業動態設計師操刀。每個效果都是一份食譜:它做什麼、從哪裡開始、在哪裡結束、在 8 秒循環內每個部分何時移動,以及讓它看起來高級的那個細節。您挑選效果,提供真正的文字內容,它就會使用您的顏色和字型從頭開始打造。

開始之前: 如果 brand.md 和 MOTION.md 存在,請先讀取它們。如果不存在,請先執行 brand-intake,或詢問十六進位色碼、字型和標誌檔案。在沒有這些資訊的情況下,永遠不要宣稱結果是符合品牌的。

步驟 1:詢問四件事,然後等待

  1. 效果。 從 16 個效果中選擇一個名稱或編號。如果使用者描述的是一個任務(例如「展示我們的定價」、「揭曉產品上市名稱」),請從下方表格中建議兩個最相符的效果,讓他們挑選。
  2. 實際內容。 要放入效果的單詞、標籤和數字。使用真實數字,或說明它們是範例。
  3. 尺寸。 1080 x 1080(正方形)、1080 x 1350(LinkedIn 直向)、1080 x 1920(Reels)或 1920 x 1080(YouTube)。
  4. 循環或停留。 循環模式會永遠重複(用於貼文或 GIF)。停留模式只播放一次,並停留在完成幀上(用於旁白,因此永遠不會在中句重置)。
#效果當您需要……時使用
01按鈕 → 播放器在登陸頁面或發布郵件中加入「觀看示範」的時刻
02搜尋 → 結果顯示使用者能在您的幫助中心或內容庫中找到什麼
03卡片 → 工作區宣布一個功能,一張小卡片變成整個編輯器
04分頁 → 面板比較方案、套裝或頻道,無需大量文字
05圖表變形將每週結果放入客戶報告或成果貼文中
06儀表板縮放從儀表板中拉出最重要的那個 KPI
07彈簧堆疊依序展示三個優惠、案例研究或見證
08磁吸底座展示您使用的工具,或產品的整合功能
09遮罩文字揭曉活動名稱、期號或發布標題
10彈性文字為活動、網路研討會或播客開啟標題卡
11文字 → 佈局將標題變成輪播封面或文章預覽
12圖片揭示預告產品發布,然後切換成您自己的照片
13視角位移解釋服務、品牌系統或技術棧的各個層次
14玻璃焦點讓人們閱讀報告中最重要的那行字
15流動路徑展示一份內容如何提供給多個頻道
16粒子標誌以您的標記結束一個影片、Reels 或貼文

步驟 2:閱讀食譜

開啟 references/effects.md 並完整閱讀所選效果:起始狀態、結束狀態、時間軸、高級細節。食譜就是規格。將示範用的單詞替換為使用者的真實單詞,並將每個顏色角色(底色、表面、墨水、柔和、強調、次要強調)對應到 MOTION.md 中的某個顏色。

步驟 3:建構它

建構一個自包含的檔案 effect.html,遵守以下規則:

  1. 一個時鐘。 每個幀都僅根據時間推導而出。加入 window.seek(秒數),該函數會繪製該時刻的準確幀,並且可以按任意順序、任意次數呼叫。不可使用 setTimeout,不可使用自行運行的 CSS 動畫,不可使用未設種子的隨機性。
  2. 一個循環,8 秒。 從 0.0 移動到 2.2,停留到 6.6,在 8.0 時返回。seek(0) 和 seek(8) 必須繪製相同的幀。在停留模式中,播放一次移動,然後從 6.6 開始停留在完成幀上。
  3. 回到起點。 返回過程會讓每個元素平滑地回到它最初的確切位置。沒有任何東西是突然歸位的。
  4. 真實內容,絕不亂數假文。 使用使用者的單詞和數字。範例數字必須在每個幀上帶有可見的「示意」或「範例」標籤。
  5. 自包含。 嵌入字型,內聯圖片,無網路請求,因此可以離線開啟並每次都呈現相同結果。
  6. 自動播放,除非另有指示。 在瀏覽器中開啟時即時播放,並在 URL 結尾為 ?render 時停止時鐘,以便匯出工具自行驅動 window.seek()。
  7. 放大效果。 效果會填滿所選尺寸的幀,並帶有 MOTION.md 中的邊距。它不是一個巨大空白畫布中的小圖塊。

步驟 4:在展示前檢查

在 0、1、2.2、4.4、6.6、7.9 和 8 秒處捕獲幀,並檢查每一個。

  • 迴圈: 幀 0 和幀 8 完全相同。
  • 移動: 幀 0、1 和 2.2 都不同。如果有兩個相同,表示效果的一部分沒有在運行。
  • 適配: 沒有文字超出其框線,且在七個時刻的任何一個都沒有任何東西被裁切。
  • 靜止: 在 4.4 處暫停。效果的點能夠從這個單一幀中讀出。
  • 品牌: 螢幕上的每個顏色和字型都來自 MOTION.md。

修正失敗的部分,再次捕獲,然後才向使用者展示 2.2 和 4.4 幀以及檔案路徑。

步驟 5:匯出

現在將 effect.html 轉換成一個我可以發布的影片和 GIF。使用此電腦上已有的工具。如果你需要安裝任何未安裝的東西,請先停下來告訴我那是什麼。載入帶有 ?render 的頁面,以每秒 30 幀的速度(8 秒共 240 幀)為每一幀呼叫 window.seek(),並以 [尺寸] 編碼為 H.264 的 MP4。然後製作一個永久循環的 GIF。顯示三張完成後的 GIF 中的幀,以便我檢查結果是否正確。

HyperFrames(npx skills add heygen-com/hyperframes)如果已安裝,可以一步完成此操作。

我學到的教訓

  • 「讓它看起來更高級」意味著一個物體改變形狀。 這 16 個效果中的每一個都是一個東西變成另一個東西:按鈕變成播放器,長條變成線條,卡片變成視窗。從一張圖片淡入到另一張圖片每次都看起來很廉價。
  • 停留才是人們真正注意的地方。 8 秒中的 4.4 秒是停留。如果這段時間內沒有任何東西移動,迴圈會感覺死氣沉沉。每個食譜都會在那裡保留一些微小的活動:一個進度條、一個游標、第二波光線。
  • 起始狀態的殘影能凸顯變化。 在按鈕或卡片起始處留下一個淡淡的輪廓,可以讓眼睛跟隨移動。沒有它,結束狀態看起來像是憑空出現的。
  • 錯開一拍,不要同時發生。 行、板條、字母和圓點各自比前一個稍晚開始。所有東西一起移動看起來只像是一個幻燈片切換。
  • 第 0 幀使用了錯誤的字型。 嵌入的字型直到有東西使用它才會載入,因此第一個幀可能會使用備用字型繪製。在第一次 seek(0) 之前顯式載入每個字型。
  • 放大它,不要重繪它。 使用固定座標繪製的效果,在您更改畫布大小時會跑到一個角落。應改為縮放整個繪圖以填滿幀。
  • 空白頁面通常是因為名稱被宣告了兩次。 在檔案之間複製 helper 會導致顏色常數重複,從而停止整個腳本。每個名稱只宣告一次,如果頁面是空白的,請將紅色的錯誤訊息貼回給 Claude。
  • 八秒對於 Reels 剪輯來說太長了。 一個完整的循環放入 Instagram 的 B-roll 中未能通過動態檢查。剪裁出主要的移動(大約其中的 1.4 秒),並在敘述下使用停留模式。
  • 為時間選擇一個單位並保持一致。 匯出工具和頁面必須一致使用秒或毫秒。此套件統一使用秒。
  • 在幀上為虛構的數字加上標籤。 我為了示範在自己的看板上虛構了所有數字,因此每個效果都帶有一個「範例」標籤,直到放入真實數字。

交接

將 effect.html、MP4 和 GIF 連同三個檢查過的幀一起交給使用者。然後用一行字提供下一步:同一個群組中的另一個效果,或使用 reel-export 將其轉換為帶有安全區文字的直向 Reels。

Individual skills in this repo

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

animated-chart

Make a looping animated chart for LinkedIn or a newsletter in code with Claude Code. Bars that become a line, a number that counts up, a before and after. Every value stays exactly as given. Use when someone says

apple-launch-film

Rebuild an Apple-style Mac launch film entirely in code with Claude Code. A thin menu bar, the black notch growing into widgets one scene at a time, full-screen gradient wallpapers and one short caption per scene. No screen recording, no After Effects. Use when someone says

brand-intake

The setup step every other skill in this pack reads. A short interview plus 3 to 5 reference frames becomes two files in your project, brand.md (who you are, what you sell, your assets) and MOTION.md (your colours, type, timing and motion rules), plus a rule in CLAUDE.md so Claude reads them before it animates anything. Use at the start of any motion project, or when someone says

launch-video

Make a 30-45 second product launch video in code with Claude Code, the kind SaaS companies post on launch day. One sentence split across scenes, real product screens with slow camera moves, a typed prompt, a proof beat and a clear call to action. Use when someone says

loop-cover

Turn a newsletter or blog cover into a seamless looping GIF at 896 x 640, 180 frames at 20fps. Only the one element you name moves, the loop is rotated so frame 1 shows the finished picture, and the seam is measured, not eyeballed. Use when someone says

milestone-reveal

Make a 12-second looping milestone clip in code with Claude Code. Thousands of tiny points drift like a night sky, pull together into your real number (followers, subscribers, revenue, customers), a line draws underneath and the label settles in. Premium, not a party. Use when someone says

model-showdown

Give the same motion brief to three AI models, keep each first try, render all three the same way and stack them into one comparison video with model names and logos. Makes a 16:9 side-by-side for a newsletter and a 1080 x 1920 stacked reel for Instagram and TikTok. Use when someone says

motion-brief-writer

Turns a rough idea for an animated graphic into a precise build brief for Claude Code, in your own brand. Asks for anything essential first (exact numbers, size, length, brand), keeps real results apart from sample data, and never invents a figure. Use when someone says

motion-prompt-writer

Write a complete 8-part Claude Motion prompt (The bar, Format, The one rule, Look, Motion, Never, Before you finish, The scene) for one short looping motion graphic, in your own brand. Takes your brand (a website screenshot, a logo, hex codes, or nothing for the Apple-style default) and one moment you want to show, in plain words. Use when someone says

newsletter-promo

Turn a newsletter edition into a 12-20 second promo clip for LinkedIn, Instagram or X that drives people to read and subscribe. Hook question, three proof frames from the edition, then the newsletter name and where to read it. Use when someone says

reel-export

Turn any horizontal or square motion video into a 1080 x 1920 Instagram Reel or TikTok that uploads cleanly. Headline and logos inside the safe zone, H.264, yuv420p, limited colour range, bt709, a silent audio track when there is no sound, and an ffprobe check before upload. Use when someone says

reference-to-motion

Turn references you admire into a scene-by-scene Claude Motion prompt for your own topic and brand. Takes a video for the moves (screenshots, frames or a contact sheet of a reel or ad) and, optionally, a look reference for the style (a website, a brand, a moodboard). Use when someone says

title-sequence-3d

Make a cinematic 3D title sequence (8-15 seconds) in code with Claude Code and Three.js. A camera moves through a lit scene, such as a rainy street at night with brand names as neon signs, then a big question or title lands. Use when someone wants a scroll-stopping opener, a film-style intro,

vox-explainer

Make a short Vox-style documentary explainer (30-60 seconds) entirely in code with Claude Code. Torn paper, halftone texture, bold condensed type, motion on twos. Use when someone says

相關技能