Communitygithub.com

MengTo/Skills

用於設計與實現如 Stripe、Linear、Apple 與 Vercel 等產品級網頁動畫。涵蓋動畫原理、緩動/持續時間預設值、編排模式、滾動/懸停互動、效能、無障礙(減少動畫)以及實作指引。

Skills 是什麼?

該技能旨在協助開發者與設計師打造具有品味且產品級的網頁動畫,並非追求「更多動畫」,而是追求「更好的動畫」:清晰、層次、回饋與愉悅感,且不產生卡頓。它參考了 Stripe、Linear、Apple 與 Vercel 等頂尖產品的動畫風格,強調節制、清晰的編排、類物理但不過度卡通化的緩動效果,以及微妙的紋理與深度。技能提供了可重用的動畫基本元素(如淡入升起、縮放淡入、滑動與變形),並給出實用的持續時間與緩動預設值,以及編排模式(如「主角→配角」或「區塊滾動顯現」)。此外,它還包含了嚴格的效能規則(只對 transform 和 opacity 進行動畫、尊重 GPU、減少重排)與無障礙支援(prefers-reduced-motion),並提供實作指引,適用於 CSS、GSAP、Framer Motion 等多種技術棧。使用者可根據品牌調性與專案需求,獲得從動畫目標、動畫代幣、編排計畫到程式碼範例的完整建議。

相容平台~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/MengTo/Skills/tree/HEAD/agent-skills/web-design/animation-systems

在你喜歡的 AI 中提問

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

說明文件

動畫系統 (Stripe × Linear × Apple × Vercel)

此技能協助你打造有品味、產品級的動畫。 不是「更多的動畫」。 而是更好的動畫:清晰、層次、回饋與愉悅感——且不產生卡頓。


目標(動畫存在的原因)

使用動畫來:

  1. 說明層次(什麼是重要的)
  2. 確認動作(提供回饋)
  3. 引導注意力(下一步該看哪裡)
  4. 維持連續性(空間關係)
  5. 增加精緻感(工藝信號)

如果一個動畫不符合以上任何一項,請刪除它。


Stripe / Linear / Apple / Vercel 風格(共同特徵)

1) 節制

  • 動畫數量較少,但經過精心挑選。
  • 一個強烈的主角時刻;其餘都是輔助動畫。

2) 清晰的編排

  • 主要元素先移動。
  • 次要元素隨後,帶有微小的延遲。
  • 動畫建立一個「閱讀順序」。

3) 類物理但不過度卡通

  • 使用感覺人性化的緩動(柔和加速 + 平穩減速)。
  • 避免在嚴肅的產品 UI 中使用彈跳預設值。

4) 紋理 + 深度(微妙)

  • 小的視差、柔和的陰影、模糊淡入、光束效果。
  • 除非是主角,否則避免沉重的 3D 效果。

動畫基本元素(先建立這些)

思考可以在各處重複使用的基本元素。

A) 淡入 + 上升(預設進入效果)

用於:文字區塊、卡片、模態框。

  • 不透明度:0 → 1
  • Y 軸偏移:12–24px → 0
  • 持續時間:300–700ms(依大小而定)

B) 縮放 + 淡入(微型強調)

用於:彈出視窗、提示訊息、選中狀態。

  • 縮放:0.98 → 1
  • 不透明度:0 → 1

C) 滑動(導航)

用於:抽屜、步驟切換。

  • 使用 transform translate;避免動畫影響版面配置。

D) 變形 / 共享元素(高工藝)

用於:分頁指示器、展開的卡片。

  • 需要一致的幾何形狀與測量好的佈局。

預設值(實用數值)

將這些作為起始系統。

持續時間(經驗法則)

  • 微型(懸浮/按壓):120–200ms
  • UI 狀態變更(切換、選擇):180–260ms
  • 小型轉場(彈出視窗、提示訊息):220–320ms
  • 頁面區塊進入:400–800ms
  • 主角序列:800–1600ms(包含內部節拍)

緩動(安全集合)

挑選一個小集合並重複使用。

  • UI:ease-out 搭配平穩減速
  • 強調:稍強烈的緩動
  • 進入:ease-out
  • 退出:ease-in(更快)

若需實作:

  • 使用你的動畫庫中對應的「power2.out / expo.out」等效值。
  • 除非品牌調性是活潑的,否則避免彈性/彈跳。

延遲

  • 每個元素 40–90ms(文字行/卡片)
  • 在行動裝置上使用較小的延遲

編排模式

1) 「主角 → 輔助元素」

  • 主角視覺元素先動畫進入。
  • 標題隨後出現。
  • 行動呼籲(CTA)最後出現。

2) 「區塊滾動顯現」

  • 當區塊約有 20–30% 的可見度時觸發。
  • 只動畫一次(不要在微小滾動時重播)。

3) 「懸浮:上移 + 發光」

  • Y 軸:-2 至 -6px
  • 陰影:略微增加
  • 可選:邊框/漸層發光

4) 「焦點環 + 微位移」

  • 對於表單欄位:焦點環 + 微小的縮放/位移以產生回應感。

效能規則(不可協商)

使用正確的屬性進行動畫

優先使用:

  • transform(translate/scale/rotate)
  • opacity

避免使用(除非必要):

  • width/height/top/left
  • 在大面積上使用昂貴的濾鏡

尊重 GPU

  • 在重度畫布中限制 device pixel ratio(1–2)
  • 保持模糊效果微妙且範圍小
  • 避免同時使用大量動畫陰影

減少重排

  • 不要在每一幀都測量版面配置。
  • 對於滾動效果,使用能批次處理讀寫操作的函式庫。

無障礙:減少動畫

永遠支援 prefers-reduced-motion。

原則:

  • 保持內容可見。
  • 用即時狀態 + 微妙的不透明度取代動畫。
  • 停用滾動擦洗/固定效果。

詢問使用者:

  • 「您是否想要一個停用所有非必要動畫的減少動畫模式?」

實作指引(與函式庫無關)

對於簡單網站

  • 小型懸浮/切換使用 CSS transition。
  • 複雜序列使用單一動畫庫(GSAP 或 Framer Motion)。

對於產品網站

  • 建立一組動畫代幣:
    • 持續時間
    • 緩動曲線
    • 標準偏移量(8/16/24px)
    • 延遲預設值

對於主角時刻

  • 使用時間軸(或關鍵幀),搭配標記好的節拍。
  • 先鎖定攝影機/場景移動,然後再加入文字層。

該詢問使用者什麼

  • 品牌調性是什麼:Stripe(精緻)、Linear(極簡)、Apple(電影感)、Vercel(開發者/產品)?
  • 關鍵時刻有哪些?(主角動畫、滾動故事、懸浮卡片、導航轉場)
  • 是否有任何效能限制?(行動裝置、低階設備)
  • 減少動畫的需求?

輸出格式(當被要求「加入 Stripe/Linear 風格的動畫」時)

回傳:

  1. 動畫目標(我們想傳達什麼)
  2. 動畫代幣(持續時間 + 緩動 + 偏移量)
  3. 編排計畫(時間軸節拍)
  4. 實作備註(效能 + 減少動畫)
  5. 一小段程式碼範例(根據技術棧提供 CSS 或 GSAP/Framer)

Individual skills in this repo

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

MengTo/Skills

Create polished 60 fps 4:3 4K browser screen-recording style videos from Codex in-app browser captures, with browser-only crop, natural macOS cursor styling, deliberate click choreography, zoom-follow framing, ffprobe/thumbnail verification, and optional native recording compatibility checks. Use when the user asks to record or re-record browser actions, show cursor clicks and zooms, make Dribbble/UI inspiration or product demo recordings, or asks whether Codex, Playwright, or an MCP can produce a natural browser demo video.

MengTo/Skills

Generate ElevenLabs text-to-speech audio from scripts or inline text using local voice profiles. Use when the user asks for ElevenLabs, text-to-speech, TTS, narration, voiceover, speech audio, or voice generation; load voice names, voice ids, emails, owners, and account-specific defaults only from local config outside the skill.

MengTo/Skills

Profile, audit, and optimize frontend page performance with emphasis on animation work, memory-leak risks, long-session slowdowns, CSS animations, canvas/WebGL requestAnimationFrame loops, marquees, skeletons, GSAP/Three/Matter effects, timers, listeners, and observers. Use when the user asks to make animations performant, pause offscreen animations, look for memory leaks, profile pages that slow the computer over time, fix janky scrolling, reduce CPU/GPU use, or repeat the "only play in view" optimization on React/Vite/Next/frontend pages using Codex Browser.

MengTo/Skills

Turn a reference video into a super detailed recreation or inspiration prompt. Use when the user provides, mentions, uploads, links, or points to a video and asks to analyze the design, UI, animations, transitions, scroll interactions, typography, colors, assets, WebGL/Three.js, storytelling, section-by-section behavior, or to create a prompt/article that recreates the page, app, interaction, or motion system.

MengTo/Skills

Create an on-scroll animation trigger using IntersectionObserver with Tailwind-friendly animation classes and keyframes. Use when asked for scroll-reveal, animate-on-scroll, or sequencing element animations when they enter the viewport.

MengTo/Skills

Create premium cinematic web motion systems with GSAP, ScrollTrigger, and Lenis. Use for luxury editorial websites, creative studio portfolios, Awwwards-style interactions, smooth scroll reveals, staggered text, parallax, pinned sections, magnetic hover states, custom cursors, and mouse-reactive layered movement.

MengTo/Skills

Create cinematic scroll-driven landing pages with Lenis smooth scrolling, GSAP ScrollTrigger, scroll-linked progression, staggered text reveals, sticky card stacks, parallax backgrounds, scroll-scrubbed transitions, footer reveals, and immersive preloaders. Use when analyzing or building premium editorial scroll experiences, sticky project stacks, kinetic typography, or section-by-section storytelling.

MengTo/Skills

Use when designing or rewriting a high-converting SaaS pricing page (structure, plan design, copywriting, SEO/AEO, FAQs, layout patterns, experiments). Includes checklists, templates, and common pitfalls.

MengTo/Skills

Use when creating or refining WebGL-heavy landing pages and you need to steer toward a specific visual outcome (premium, technical, playful, cinematic) while balancing conversion clarity, performance, and implementation complexity.

相關技能