Communitygithub.com

ComeOnOliver/skillshub

審查功能並透過有目的性的動畫、微互動與動態效果來強化可用性與愉悅感。

skillshub 是什麼?

這項技能旨在引導開發者或設計師以策略性方式為功能添加動畫與微互動,從而提升使用者體驗。它強調動機必須明確,每個動畫都應具備實質功能,例如提供回饋、引導注意力或創造愉悅時刻,而非僅是裝飾。技能支援所有現代前端框架(如 React、Vue)及 CSS/Javascript 動畫技術,並詳細說明了時間控制、緩動曲線、GPU 加速等效能最佳化做法。更重要的是,它強制要求遵循 `prefers-reduced-motion` 可及性規範,確保對運動敏感的使用者也有適當的無動畫替代方案。執行流程包含強制性的脈絡收集(目標受眾、品牌調性、效能限制)、動畫機會評估(靜態區域、缺失回饋、突兀轉場)、策略規劃(英雄時刻、回饋層、轉場層、愉悅層)以及系統化實作(入場動畫、微互動、狀態轉換、導航與引導)。最終會要求進行品質驗證,確保 60fps 流暢度、自然感受、適當時間與可及性。

相容平台~Claude Code~Codex CLI✓Cursor
npx skills add https://github.com/ComeOnOliver/skillshub/tree/HEAD/skills/aiskillstore/marketplace/pbakaus/animate

在你喜歡的 AI 中提問

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

說明文件

分析功能並策略性地添加動畫和微互動,以增強理解、提供回饋並創造愉悅感。

強制準備事項

脈絡收集(請先執行此步驟)

若無必要的脈絡,例如目標受眾(關鍵)、預期使用情境(關鍵)、品牌個性/調性(活潑 vs 嚴肅、活力 vs 平靜)以及效能限制,您無法交出優異的成果。

請嘗試從當前對話或程式碼庫中取得這些資訊。

  1. 如果您找不到 確切 資訊,而必須從現有設計和功能推斷,則必須停下來並 {{ask_instruction}} 確認您的推斷是否正確。
  2. 否則,如果您無法完全推斷,或您的信心水準為中等或以下,則必須 {{ask_instruction}} 提出釐清問題以完成您的脈絡。

在獲得答案之前不要繼續進行。猜測會導致不恰當或過度的動畫。

使用前端設計技能

使用前端設計技能來了解設計原則與反模式。在該技能執行完畢且您知曉所有「該做」與「不該做」之前,不要繼續進行。


評估動畫機會

分析哪些地方可以透過動態效果改善體驗:

  1. 找出靜態區域:

    • 缺失的回饋:沒有視覺認可的操作(按鈕點擊、表單提交等)
    • 突兀的轉場:瞬間的狀態變化,感覺很突然(顯示/隱藏、頁面載入、路由切換)
    • 不明確的關係:不明顯的空間或階層關係
    • 缺乏愉悅感:功能正常但無趣的互動
    • 錯失引導機會:可用來引導注意力或解釋行為的場景
  2. 了解情境:

    • 個性是什麼?(活潑 vs 嚴肅、活力 vs 平靜)
    • 效能預算如何?(行動優先?頁面複雜?)
    • 目標受眾是誰?(對動畫敏感的使用者?追求速度的專業使用者?)
    • 什麼最重要?(一個主要動畫 vs 多個微互動?)

如果以上任何一點在程式碼庫中不清楚,請 {{ask_instruction}}

關鍵:尊重 prefers-reduced-motion。務必為有需要的使用者提供無動畫的替代方案。

規劃動畫策略

建立有目的性的動畫計畫:

  • 英雄時刻:哪一個是「招牌」動畫?(頁面載入?主角區塊?關鍵互動?)
  • 回饋層:哪些互動需要被確認?
  • 轉場層:哪些狀態變化需要平滑過渡?
  • 愉悅層:我們可以在哪裡帶來驚喜與愉悅?

重要:一個精心編排的體驗勝過四處散落的動畫。聚焦在高影響力的時刻。

實作動畫

依照以下類別系統性地添加動態效果:

入場動畫

  • 頁面載入編排:交錯顯示元素(100-150ms 延遲),淡入 + 滑入組合
  • 主角區塊:主要內容的戲劇性入場(縮放、視差或其他創意效果)
  • 內容揭露:使用 Intersection Observer 觸發的滾動動畫
  • 模態框/抽屜進入:平滑滑入 + 淡入,背景淡入,焦點管理

微互動

  • 按鈕回饋:
    • 懸停:微幅縮放(1.02-1.05),顏色變化,陰影增加
    • 點擊:快速縮小再放大(0.95 → 1),漣漪效果
    • 載入中:旋轉器或脈動狀態
  • 表單互動:
    • 輸入框聚焦:邊框顏色過渡,微幅縮放或發光
    • 驗證:錯誤時抖動,成功時打勾,平滑的顏色過渡
  • 切換開關:平滑滑動 + 顏色過渡(200-300ms)
  • 核取方塊/選項按鈕:勾選動畫,漣漪效果
  • 喜歡/收藏:縮放 + 旋轉,粒子效果,顏色過渡

狀態轉換

  • 顯示/隱藏:淡入 + 滑入(非瞬間),適當的時間(200-300ms)
  • 展開/收合:高度過渡並處理溢位,圖示旋轉
  • 載入狀態:骨架螢幕淡入,旋轉器動畫,進度條
  • 成功/錯誤:顏色過渡,圖示動畫,溫和縮放脈動
  • 啟用/停用:透明度過渡,游標變化

導航與流程

  • 頁面轉場:路由間的交叉淡入,共享元素轉場
  • 分頁切換:滑動指示器,內容淡入/滑入
  • 輪播/滑塊:平滑變形,吸附點,動量效果
  • 滾動效果:視差層,狀態變化的固定標頭,滾動進度指示器

回饋與引導

  • 懸停提示:工具提示淡入,游標變化,元素高亮
  • 拖放:抬起效果(陰影 + 縮放),放置區高亮,平滑重新定位
  • 複製/貼上:貼上時短暫高亮閃爍,「已複製」確認訊息
  • 焦點流程:高亮顯示表單或工作流程中的路徑

愉悅時刻

  • 空狀態:插圖上的微幅浮動動畫
  • 完成動作:五彩紙屑,勾選動畫,成功慶祝
  • 彩蛋:供探索發現的隱藏互動
  • 情境動畫:天氣效果,時段主題,季節性裝飾

技術實作

針對每個動畫使用適當的技術:

時間與緩動

各用途的持續時間:

  • 100-150ms:即時回饋(按鈕按下、切換)
  • 200-300ms:狀態變化(懸停、選單開啟)
  • 300-500ms:佈局變化(手風琴、模態框)
  • 500-800ms:入場動畫(頁面載入)

緩動曲線(請使用這些,而非 CSS 預設值):

/* 推薦 - 自然減速 */
--ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);    /* 平滑、精緻 */
--ease-out-quint: cubic-bezier(0.22, 1, 0.36, 1);   /* 稍微乾脆 */
--ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);     /* 自信、果斷 */

/* 避免 - 感覺過時且俗氣 */
/* bounce: cubic-bezier(0.34, 1.56, 0.64, 1); */
/* elastic: cubic-bezier(0.68, -0.6, 0.32, 1.6); */

退出動畫應比進入動畫快。 使用約 75% 的進入持續時間。

CSS 動畫

/* 偏好用於簡單、宣告式的動畫 */
- 狀態變化使用 transition
- 複雜序列使用 @keyframes
- 僅使用 transform + opacity(GPU 加速)

JavaScript 動畫

/* 用於複雜、互動式的動畫 */
- Web Animations API 提供程式化控制
- Framer Motion 用於 React
- GSAP 用於複雜序列

效能

  • GPU 加速:使用 transform 和 opacity,避免佈局屬性
  • will-change:謹慎添加,用於已知的昂貴動畫
  • 減少繪製:最小化重繪,在適當時使用 contain
  • 監控 FPS:確保在目標裝置上達到 60fps

可及性

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

絕對不要:

  • 使用 bounce 或 elastic 緩動曲線——它們感覺過時且將注意力吸引到動畫本身
  • 為佈局屬性(width, height, top, left)添加動畫——請改用 transform
  • 回饋動畫持續時間超過 500ms——感覺延遲
  • 無目的添加動畫——每個動畫都需要一個理由
  • 忽略 prefers-reduced-motion——這是可及性違規
  • 為所有東西添加動畫——動畫疲勞會讓介面感覺令人筋疲力竭
  • 在動畫期間阻止互動,除非是有意為之

驗證品質

徹底測試動畫:

  • 60fps 流暢:在目標裝置上無卡頓
  • 感覺自然:緩動曲線感覺有機,而非機械
  • 時間適當:不過快(突兀)也不過慢(延遲)
  • 減弱動畫模式正常運作:動畫已正確停用或簡化
  • 不阻擋:使用者在動畫期間/之後仍可互動
  • 增加價值:讓介面更清晰或更愉悅

請記住:動態效果應增強理解並提供回饋,而非僅僅添加裝飾。有目的性地添加動畫,尊重效能限制,並始終考慮可及性。優秀的動畫是看不見的——它只是讓一切感覺恰到好處。

Individual skills in this repo

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

ComeOnOliver/skillshub

Create stunning, animation-rich HTML presentations from scratch or by converting PowerPoint files. Use when the user wants to build a presentation, convert a PPT/PPTX to web, or create slides for a talk/pitch. Helps non-designers discover their aesthetic through visual exploration rather than abstract choices.

ComeOnOliver/skillshub

Next.js 16+ 和 Turbopack — 增量打包、文件系统缓存、开发速度,以及何时使用 Turbopack 与 webpack。

ComeOnOliver/skillshub

SwiftUI architecture patterns, state management with @Observable, view composition, navigation, performance optimization, and modern iOS/macOS UI best practices.

ComeOnOliver/skillshub

See, Understand, Act on video and audio. See- ingest from local files, URLs, RTSP/live feeds, or live record desktop; return realtime context and playable stream links. Understand- extract frames, build visual/semantic/temporal indexes, and search moments with timestamps and auto-clips. Act- transcode and normalize (codec, fps, resolution, aspect ratio), perform timeline edits (subtitles, text/image overlays, branding, audio overlays, dubbing, translation), generate media assets (image, audio, video), and create real time alerts for events from live streams or desktop capture.

ComeOnOliver/skillshub

AI-assisted video editing workflows for cutting, structuring, and augmenting real footage. Covers the full pipeline from raw capture through FFmpeg, Remotion, ElevenLabs, fal.ai, and final polish in Descript or CapCut. Use when the user wants to edit video, cut footage, create vlogs, or build video content.

ComeOnOliver/skillshub

Next.js 15 애플리케이션을 위한 프론트엔드 개발 가이드라인. React 19, TypeScript, Shadcn/ui, Tailwind CSS를 사용한 모던 패턴. Server Components, Client Components, App Router, 파일 구조, Shadcn/ui 컴포넌트, 성능 최적화, TypeScript 모범 사례 포함. 컴포넌트, 페이지, 기능 생성, 데이터 페칭, 스타일링, 라우팅, 프론트엔드 코드 작업 시 사용.

ComeOnOliver/skillshub

Provides Tamagui patterns for config v4, compiler optimization, styled context, and cross-platform styling. Must use when working with Tamagui projects (tamagui.config.ts, @tamagui imports).

ComeOnOliver/skillshub

Create distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.

ComeOnOliver/skillshub

Create high-converting, visually distinctive landing pages. Use when building marketing pages, product launches, SaaS homepages, or any single-page conversion-focused website. Guides section-by-section composition with anti-AI-slop principles.

ComeOnOliver/skillshub

Auto-loaded context for Portfolio Buddy 2 development. Use for ANY task involving: React 19 development, TypeScript, portfolio analysis features, metrics calculations, trading strategy comparison, or working with the Portfolio Buddy 2 codebase. Contains tech stack, known issues, and architectural constraints.

ComeOnOliver/skillshub

Next.js development tooling via MCP. Inspect routes, components, build info, and debug Next.js apps. Use when working on Next.js applications, debugging routing, or inspecting app structure. NOT for general React or non-Next.js projects.

ComeOnOliver/skillshub

Implement UI using Shadcn MCP (atoms/theme) and 21st.dev MCP (complex sections). Use when adding buttons, layouts, or generating landing pages.

ComeOnOliver/skillshub

A conceptual skill for building an API client in Next.js that handles JWT tokens

ComeOnOliver/skillshub

Best practices and patterns for Next.js App Router, Server Actions, and Routing in this project.

ComeOnOliver/skillshub

The Design System, Theme, and UX rules for the Physical AI Hub.

ComeOnOliver/skillshub

Comprehensive frontend development skill for building modern, performant web applications using ReactJS, NextJS, TypeScript, Tailwind CSS. Includes component scaffolding, performance optimization, bundle analysis, and UI best practices. Use when developing frontend features, optimizing performance, implementing UI/UX designs, managing state, or reviewing frontend code.

ComeOnOliver/skillshub

This document captures learnings from fixing keyboard navigation issues when floating components (Select, DropdownMenu, Popover) have CSS open/close animations.

ComeOnOliver/skillshub

Build Next.js 16 applications with correct patterns and distinctive design. Use when creating pages, layouts, dynamic routes, upgrading from Next.js 15, or implementing proxy.ts. Covers breaking changes (async params/searchParams, Turbopack, cacheComponents) and frontend aesthetics. NOT when building non-React or backend-only applications.

ComeOnOliver/skillshub

Comprehensive Framer Motion animation library for React. Covers motion components, variants, gestures, page transitions, and scroll animations. Use when adding animations to React/Next.js applications.

ComeOnOliver/skillshub

Build interfaces that resonate, not just render. This skill enforces bold, intentional

相關技能