Communitygithub.com

數據條動畫風格 (Data Bars)

適用於 Instagram Reels 和輪播圖的 Remotion 動畫風格「數據條」(Data Bars),採用奶油色背景、以數字為主角、彈簧動畫的長條圖、單色百分比計數器,以及一個突出的「答案」長條。適合數據故事、分析、比較、薪資/稅務/金融解說影片。

數據條動畫風格 (Data Bars) 是什麼?

這是一個專為社群媒體短影片(Reels、TikTok、Shorts)設計的 Remotion 動畫風格「數據條」。它提供了一種編輯器風格的財經資訊圖表 (editorial finance infographic),非常適合用於數據故事、數據分析、比較、以及薪資/稅務/金融等解說影片。此風格的核心視覺元素包括:奶油色背景、彈簧動畫效果的長條圖、單色百分比計數器、一個用強調色標示的「答案」長條,以及搭配襯線斜體字詞的無襯線標題。此技能支援 Claude Code、Cursor 和 Codex 等 AI 代理平台。它基於 claude-motion-skills 專案中的 DataBars.tsx 元件,並需要使用者提供自己的品牌顏色代碼。其工作流程包含明確的影片幀配方、動畫參數設定、可選的 Google Flow 3D 素材生成規則,以及嚴格的品質檢查清單,以確保輸出結果符合專業標準,例如幀 0 必須是完整封面、文字須在 Reels 安全區內、音訊需符合 -14 LUFS 響度標準。

相容平台✓Claude Code~Codex CLI~Cursor
npx skills add https://github.com/bahodirbuxorov/claude-motion-skills/tree/HEAD/skills/motion-data-bars

在你喜歡的 AI 中提問

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

說明文件

數據條 — 適用於 Reels / TikTok / Shorts 的動畫風格 (Remotion)

即時示範程式碼:starter/src/styles/DataBars.tsx,位於 claude-motion-skills。 請自備品牌代碼(starter/src/lib/tokens.ts)。如果你的專案有自己的風格指南(例如 STUDIO.md),則以此為準。

幀配方

  • 奶油色 #F5F1E8,墨色 #16201D。長條使用品牌顏色的三種深淺,其中一個答案長條使用強調色(萊姆綠)。
  • 標題使用無襯線字體 900 粗細,約 100 px,2 行;問題中的關鍵詞以襯線斜體顯示於強調色色塊上。標題與圖表之間距離 >= 80 px。
  • 每個長條上方顯示數值(等寬字體 40 px),下方顯示標籤(28 px),基線 3 px。長條數量 3-6 個。

動畫 (BarChart)

長條彈簧動畫 d15 s110,5 幀交錯;第 0 幀時高度已達 25%
數值22 幀內從 25% 單調變化至 100%
答案長條最後一個生長;頂部可加上試算表儲存格邊框或箭頭
  • 完成後的圖表需停留 >= 2.5 秒(閱讀時間),並帶有緩慢推近效果。
  • 數字必須能夠加總;顯示資料來源或「範例數字」標籤。

素材 — Google Flow(規則)

此風格: 可選 — 在圖表旁放置一個小型 3D 物件(硬幣、錢包)作為封面;圖表本身由程式碼生成。

  1. 生成: 前往 flow.google.com -> 建立專案 -> 切換至圖片模式(非影片 — Veo 會消耗點數),Nano Banana,1:1,x2。
  2. 提示詞範本: "3D render of a [物件] ... in [品牌主色] with [強調色] accents, soft contact shadow, centered with generous empty space, isolated on a plain seamless very light [地面色] background, soft studio lighting. Minimal premium 3D icon style. No text, no numbers, no letters, no faces, no logos." 網點變體:"Black and white halftone photo cut-out of [物件], collage sticker style with a thick clean white paper border ... No text."
  3. 檢查 兩種變體的全尺寸圖 — 拒絕任何包含文字、人臉、多餘的手或破損形狀的圖片。
  4. 下載 2K 解析度至 public/ 資料夾。測量渲染圖的背景色(邊界區域的中位數),並將其用作場景的地面色,使物件能自然融合。需要透明去背?使用 starter/cutout.py in.jpg out.png [tol] [noshadow](不適用於玻璃/透明物件)。
  5. 禁止重複使用素材: 一個影片中用過的素材(3D 物件、圖片、音樂軌道)不得在下一個影片中重複使用 — 觀眾會對重複感到厭倦。請在你的專案中維護一份素材清單(ASSETS.md),每集開始前檢查,每次渲染後追加記錄。例外情況:Logo、字型、顏色代碼、音效、圖示。

品質檢查清單

  • tsc + lint -> 關鍵幀截圖 -> 渲染 -> 整部影片的連頁縮圖(ffmpeg -vf "select='gte(n,12)*not(mod(n-12,25))',scale=216:-1,tile=7x4")-> 響度 -14 LUFS(兩次 loudnorm 處理)。
  • 第 0 幀必須是完整的封面(不能是空幀);任何畫面停滯不超過 2 秒;文字不重疊。
  • 可讀文字需保持在 Reels 安全區域內:y 285–1248,x 80–910(1080x1920)— 下方 35% 及右方 170 px 會被 UI 覆蓋。
  • 字型須包含你語言的字符(例如烏茲別克語 ʻ U+02BB / ʼ U+02BC:Inter、Inter Tight、IBM Plex、Big Shoulders、Playfair Display 包含;Bricolage、Syne、Manrope、Instrument Serif 不包含)。請不要使用字形輸入箭頭 / 不等號 / 序號符號 — 請改用 SVG 圖示。
  • 旁白:先錄製一次 TTS,然後僅在靜音段縮短過長的停頓(使用 silencedetect)。字幕為可選 — 當螢幕上已顯示大段文字時可省略。

Individual skills in this repo

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

motion-aura-type

Remotion motion style "Aura Type" (soft gradient aura + minimal kinetic typography): white ground, 2–3 huge blurred colour blobs drifting slowly, words resolving one by one from blur to sharp, one serif-italic word in colour. For hooks, quotes, relatable one-liners, statements. Triggers: "aura gradient", "blur text animation", "kinetic typography", "quote reel", "minimal text reel".

motion-bento

Remotion motion style "Bento" (bento-grid feature board) for Instagram Reels and carousels: light ground, rounded tiles of different sizes in a tight grid, one fact per tile (big number, icon, 3D object, short label), one hero tile in brand colour; tiles pop in on a stagger, numbers count up. For product features, "what''s inside", dashboards, results. Triggers: "bento grid", "feature grid animation", "app features reel", "dashboard reel".

motion-captions

Animated captions / subtitles for Instagram Reels, TikTok and YouTube Shorts in Remotion: 6 trending styles — Bold Pop (Hormozi-style uppercase, stroke, keyword colour, word pop), Karaoke (active word grows), Editorial Mix (small words + one giant serif quote), Serif Mix, Box Line (plate + highlighted word), Minimal (lowercase fade). Covers word timing (Whisper word timestamps or silence-based estimation for low-resource languages), pagination, safe zone and when NOT to caption. Triggers: "captions", "subtitles", "animated captions", "karaoke captions", "hormozi captions", "word by word subtitles".

motion-glass-object

Remotion motion style "Glass & Object" for Instagram Reels, TikTok and YouTube Shorts: one glossy/puffy 3D object hero (Google Flow / Nano Banana), light studio ground, frosted glass cards, floating pill tags, lime highlight box, spreadsheet-cell selection signature, spring animations. Use for product, fintech and SaaS reels, explainers and hooks. Triggers: "glass object", "3D object reel", "fintech reel", "glassmorphism motion", "puffy 3D".

motion-newsflash

Remotion motion style "News Flash" (newspaper headline + hand-drawn annotations) for Instagram Reels: newsprint ground, masthead rule, huge condensed headline, yellow brush highlight that paints in, red marker circle and arrow that draw on, faint text columns, source on screen. For tax news, law changes, deadlines, announcements. Triggers: "newspaper style", "news reel", "breaking news animation", "deadline reminder", "hand drawn annotation".

motion-swiss-grid

Remotion motion style "Swiss Grid" (International Typographic Style revival): paper ground, visible column grid that draws in, big circle + square primitives in brand colours, one giant grotesk word, narrow mono text columns, numbers as graphic elements. For series covers, rules, checklists, step-by-step reels. Triggers: "swiss design", "grid poster", "bauhaus motion", "minimal poster animation", "series cover".

相關技能