Communitygithub.com

YuukiAS/AI_Skills_Collection

Design and implement frontend motion: page-load choreography, transitions, hover states, scroll effects, feedback animation, and reduced-motion behavior. Use when adding or reviewing animation and interaction polish.

AI_Skills_Collection 是什麼?

AI_Skills_Collection is a Claude Code agent skill that design and implement frontend motion: page-load choreography, transitions, hover states, scroll effects, feedback animation, and reduced-motion behavior. Use when adding or reviewing animation and interaction polish.

相容平台~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/YuukiAS/AI_Skills_Collection/tree/HEAD/skills/tools/frontend/motion-interaction

在你喜歡的 AI 中提問

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

說明文件

Frontend Motion and Interaction

Motion should clarify structure, provide feedback, or create one memorable moment. Avoid scattered animation that competes with the interface.

Motion Strategy

  1. Choose the role: orientation, feedback, delight, continuity, or emphasis.
  2. Define one primary moment: page load, hero interaction, panel transition, or data reveal.
  3. Keep secondary motion quiet.
  4. Respect reduced-motion preferences.

Patterns

  • Page load: staggered entrance with short delays and consistent easing.
  • Hover: small transform, color, elevation, or reveal tied to affordance.
  • Press: immediate tactile feedback.
  • Layout transition: preserve spatial continuity.
  • Data reveal: animate changes only when it improves comprehension.
  • Scroll effects: use sparingly and avoid blocking content access.

Timing

  • Micro-interactions: 120-220ms.
  • UI transitions: 180-350ms.
  • Large hero moments: 400-800ms when appropriate.
  • Use one easing family per interface.

Implementation

  • Prefer CSS transitions for simple effects.
  • Use Framer Motion when coordinating React state, route transitions, or complex sequencing.
  • For React projects, public libraries such as React Bits can be useful references for text effects, animated backgrounds, and interactive components. Treat them as optional dependencies: verify license, bundle impact, accessibility, reduced-motion behavior, and project fit before adding.
  • Avoid animation that changes layout unexpectedly.
  • Provide prefers-reduced-motion fallbacks.

Ownership

  • Own motion intent: orientation, continuity, feedback, hierarchy, and deliberate delight.
  • Separate design motion from runtime latency, data loading, and jank. Runtime performance defects go back to implementation/testing; do not invent a universal cross-project millisecond budget as a design rule.
  • Motion should support F-C actual-surface convergence: verify that animation does not hide content, break focus, misrepresent state, or create a competing interaction path.

Verification

Confirm animations do not cause jank, obscure text, trap focus, or delay primary tasks.

相關技能