Token导航 LogoToken导航

Agent Skill · 前端设计

interaction-%26-motion-design(互动%26 动作设计)

用于辅助界面设计、视觉规范、排版、配色、布局和交互体验优化。它适合让 Agent 根据产品场景整理页面结构、生成 UI 方案、检查视觉一致性或改进组件层级。使用时需要结合现有品牌、设计系统和用户任务,不应只堆装饰元素;涉及真实页面改动时,应通过截图或浏览器预览检查文本溢出、对齐和响应式表现。

interaction-%26-motion-design 是前端设计类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为需要联网;许可证信息还不明确,暂无第三方扫描结果,按安装量在前端设计类的 10,216 个 Skill 里排第 703。

总安装 13,796周安装 766GitHub Stars 3下载 7,592核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
unknown

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:interaction-%26-motion-design(互动%26 动作设计)
来源仓库:https://github.com/phazurlabs/ux-ui-mastery
仓库路径:skills/interaction-%26-motion-design
安装命令:
npx skills add https://github.com/phazurlabs/ux-ui-mastery --skill 'Interaction & Motion Design'
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/phazurlabs/ux-ui-mastery --skill 'Interaction & Motion Design'

这个 Skill 是做什么的

前端设计类 Skill 关注页面结构、视觉规范和组件写法,输出通常是可运行的界面代码。

用于辅助界面设计、视觉规范和交互体验优化。适合整理页面结构、生成 UI 方案或改进组件层级。需结合现有品牌和设计系统,不应只堆砌装饰元素;涉及真实页面时应通过截图检查文本溢出和对齐。

安装命令:npx skills add https://github.com/phazurlabs/ux-ui-mastery --skill 'Interaction & Motion Design'。建议确认权限范围和维护状态,避免触发不必要的联网或文件读写操作。

来源仓库内路径:skills/interaction-%26-motion-design

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/phazurlabs/ux-ui-mastery --skill 'Interaction…;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要需要联网,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

interaction-%26-motion-design 怎么安装?

在终端执行 npx skills add https://github.com/phazurlabs/ux-ui-mastery --skill 'Interaction & Motion D…。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

interaction-%26-motion-design 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

interaction-%26-motion-design 需要什么权限?

权限级别是需要联网。该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

interaction-%26-motion-design 是免费的吗?

公开资料没有标注明确许可证,收费和商用限制都无法确认。正式使用前请到来源仓库核对授权说明。

interaction-%26-motion-design 用的人多吗?

公开数据是累计安装 13,796 次,近一周安装 766 次,下载 7,592 次,GitHub 3 星。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

interaction-%26-motion-design 安全吗?

没有查到第三方扫描结果,安全性无法从公开资料判断,安装前请自行审查源码、依赖和命令行为。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。

先想清楚的地方

  • 许可证没有明确标注,能不能商用、能不能再分发都不确定。
  • 没有第三方扫描结果,安全性只能靠自己读源码判断。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理前端设计类任务、又不想每次都手写提示词的人。

不太适合

  • 需要明确授权才能用到公司项目里的场景。
  • 要求有安全扫描结论才肯安装的团队。
  • 需要厂商级技术支持和 SLA 的生产系统。

前端设计类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
frontend-design

前端设计 · Codex、Claude

8,823,360126,072只读MIT通过
vercel-composition-patterns

Vercel 组合模式 · Codex、Claude

3,858,81625,893需要联网MIT通过
vercel-react-native-skills

Vercel React native skills 前端 · Codex、Claude

2,468,66425,878只读MIT通过
adapt

adapt 搜索 · Codex、Claude

2,027,04023,125操作浏览器未明确通过
bolder

bolder 分析 · Codex、Claude

2,004,28823,130只读未明确通过
interaction-%26-motion-design

互动%26 动作设计 · 本页

13,7963需要联网未明确未收录

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

Interaction & Motion Design — Purposeful Animation Framework

Motion Design Philosophy

"Animation is not about making things move. It is about making things feel alive." Motion connects interface states, communicates causality, and creates emotional resonance. Every animation must earn its milliseconds — gratuitous motion is worse than no motion at all.

Core Principles (Disney's 12 Principles, Adapted for UI)

  1. Purpose over polish — every animation must serve a functional role: guide attention, show relationships, confirm actions, or create continuity
  2. Physics-based movement — natural motion follows physical laws (acceleration, deceleration, spring, gravity)
  3. Performance is non-negotiable — animations must run at 60fps; a janky animation is worse than no animation
  4. Respect user preference — honor prefers-reduced-motion unconditionally; motion sensitivity is real and common
  5. Subtlety scales — small animations compound; individually subtle, collectively they define the interface's personality

Animation Timing and Duration

Duration Guidelines

Instant:          0ms       — Hover state color changes, cursor changes
Micro:           100-150ms  — Button press feedback, checkbox toggle, ripple
Small:           150-250ms  — Tooltip appear/dismiss, dropdown open, fade
Medium:          250-400ms  — Panel slide, card expand, page transition
Large:           400-600ms  — Complex layout reflow, modal open with backdrop
Extra Large:     600-1000ms — Onboarding sequences, celebratory moments (rare)

Critical Rules

  • Interface responses under 100ms feel instantaneous — do not animate these.
  • User-initiated actions: 150-300ms (responsive, not sluggish).
  • System-initiated changes: 200-500ms (smooth, noticeable enough to orient).
  • Never exceed 1000ms for any single transition in regular workflows.
  • Mobile animations should be approximately 30% shorter than desktop equivalents for a faster feel.

Easing Curves

Standard Easing Library

Ease-out (decelerate) — Use for elements entering the screen.

transition-timing-function: cubic-bezier(0.0, 0.0, 0.2, 1.0);
/* Enters fast, slows to rest — feels responsive */

Ease-in (accelerate) — Use for elements leaving the screen.

transition-timing-function: cubic-bezier(0.4, 0.0, 1.0, 1.0);
/* Starts slow, accelerates out — feels like natural exit */

Ease-in-out (standard) — Use for elements changing state on screen.

transition-timing-function: cubic-bezier(0.4, 0.0, 0.2, 1.0);
/* Smooth transition between two states */

Spring curve — Use for playful, physics-based interactions.

/* CSS spring() not yet standard; use JavaScript spring physics */
/* Parameters: stiffness ~170, damping ~26, mass ~1 for natural feel */

Rule: Never Use Linear Easing for UI Motion

Linear easing (ease: linear) feels mechanical and robotic. The only exceptions are infinite progress indicators and color transitions.

Micro-Interaction Patterns

Button Interactions

  • Press: Apply slight scale down (0.97-0.98) plus subtle darkening on press — immediate, under 100ms.
  • Release: Spring back to 1.0 scale — 150-200ms with ease-out.
  • Loading: Replace label with inline spinner, maintain button dimensions — prevent layout shift.
  • Success: Apply brief color transition to success state (green) plus checkmark icon swap — 300ms.
  • Disabled: Reduce opacity (0.5-0.6), remove hover effects, change cursor.

Toggle and Switch

  • Thumb translation: 200ms ease-in-out.
  • Track color transition: 150ms.
  • Add slight bounce (overshoot spring) for personality.
  • Trigger haptic feedback on state change (mobile).

Form Interactions

  • Focus: Transition input border color — 150ms.
  • Validation success: Apply subtle green border plus checkmark icon fade-in — 200ms.
  • Validation error: Apply red border plus shake animation (2-3px horizontal, 300ms) plus error text slide-down.
  • Character counter: Transition color as limit approaches (neutral to warning to error).

Notification and Toast

  • Enter: Slide in from edge plus fade — 300ms ease-out.
  • Persist: 3-5 seconds for success, persistent for errors.
  • Exit: Fade out plus slight vertical slide — 200ms ease-in.
  • Stack: Push existing notifications when new ones arrive, with 200ms stagger.

Transition Design

Page and View Transitions

Forward navigation (deeper in hierarchy):

  • Slide new view in from right (LTR) — 300ms ease-out.
  • Slide previous view left and slightly scale down (0.95) — 300ms ease-out.
  • Maintain visual continuity for shared elements (hero transitions).

Backward navigation (up in hierarchy):

  • Reverse the forward animation — slide previous view in from left.
  • Match gesture velocity for swipe-back (iOS-style).

Modal/Dialog:

  • Backdrop: fade in black overlay (opacity 0.5) — 200ms.
  • Dialog: scale from 0.95 to 1.0 plus fade in — 250ms ease-out.
  • Dismiss: reverse with ease-in — 200ms.
  • Trap focus on open, restore focus on close.

Tab/Segment Change:

  • Content crossfade: 150-200ms.
  • Slide active indicator to new position — 250ms ease-in-out.
  • Avoid sliding content left/right for tabs (it implies hierarchy, not peers).

Shared Element Transitions (View Transitions API)

/* Modern approach using View Transitions API */
::view-transition-old(hero) {
  animation: fade-out 250ms ease-in;
}
::view-transition-new(hero) {
  animation: fade-in 250ms ease-out;
}
  • Maintain visual continuity when elements persist across views.
  • Anchor transitions to the shared element — the eye follows it naturally.
  • Use the View Transitions API for declarative cross-view animation.

Loading State Choreography

Skeleton Screens (Preferred)

  • Show content structure with animated placeholder shapes before data loads.
  • Pulse animation: opacity 0.3 to 0.7 — 1.5s ease-in-out infinite.
  • Match skeleton shapes to actual content dimensions.
  • Stagger skeleton appearance slightly (50ms between groups) for natural feel.

Progress Indicators

  • Determinate: Use when progress percentage is known — smooth bar fill.
  • Indeterminate: Use when duration is unknown — continuous animation loop.
  • Combined: Start indeterminate, switch to determinate when progress data arrives.
  • Position at the top of the content area being loaded.

Optimistic UI

  • Show the expected result immediately upon user action.
  • If the action fails, smoothly revert with clear error notification.
  • This eliminates perceived loading time for common operations (like, save, send).

Emotional Design Through Motion (Don Norman)

The Three Levels of Emotional Design

Visceral (instinctive):

  • First-impression motion: smooth, fluid transitions signal quality and care.
  • Avoid janky, delayed, or inconsistent animations — they signal low quality.
  • Natural physics (spring, gravity) feel better than mechanical motion.

Behavioral (usability):

  • Motion must support task completion, not hinder it.
  • Confirmations (checkmark, success state) reinforce correct actions.
  • Error animations (shake, pulse) communicate problems clearly.

Reflective (self-image):

  • Deploy celebratory animations for milestones (confetti, progress completion).
  • Embed subtle delight in repeated interactions (easter eggs for power users).
  • Express personality through motion style: playful brands move differently than corporate ones.

Emotional Motion Vocabulary

  • Confidence: Smooth, direct, no hesitation — ease-out curves.
  • Playfulness: Bounce, overshoot, spring physics — slight exaggeration.
  • Urgency: Fast, sharp transitions — short durations, ease-in.
  • Calm: Slow, gentle fades — longer durations, ease-in-out.
  • Celebration: Explosive, radial, particle effects — reserve for significant moments.

Haptic Feedback (Mobile and Spatial)

iOS Haptic Types

  • Impact (light/medium/heavy): Physical button feel — for selections, toggles.
  • Notification (success/warning/error): System feedback — for action outcomes.
  • Selection changed: Subtle tick — for picker scroll, slider steps.

Haptic Design Rules

  • Pair haptics with visual feedback — never rely on haptics alone.
  • Keep haptic patterns short (under 100ms) for UI feedback.
  • Match haptic intensity to action significance.
  • Disable haptics when user has reduced motion preferences.

Reduced Motion Accessibility

Implementation Strategy

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

Preferred approach: Replace motion with non-motion alternatives rather than removing all animation.

  • Replace slide transitions with instant state changes or opacity fades.
  • Replace bouncing/spinning with static state indicators.
  • Keep essential functional animations (progress bars) but simplify them.
  • Remove parallax, auto-playing video backgrounds, and decorative animations entirely.

Cross-Referencing

  • For performance impact on mobile, reference mobile-ux-design.
  • For accessibility requirements, reference accessibility-inclusive-design.
  • For visual design integration, reference ui-visual-design-system.
  • For AI and spatial motion, reference ai-spatial-voice-ux.

v3.0 Cross-References

The v3.0 upgrade introduces dedicated reference materials that significantly extend this skill's coverage of haptic design and spring-based motion.

Haptic Feedback Design System See references/haptic-feedback-design-system.md for the comprehensive haptic design reference covering iOS Core Haptics engine parameters (intensity, sharpness, CHHapticPattern), Android HapticFeedbackConstants (CONFIRM, REJECT, GESTURE_START, GESTURE_END), Apple Watch Taptic Engine patterns, brand haptic vocabulary development, and accessibility considerations for haptic feedback (pairing with visual/audio cues, respecting reduced-motion preferences, providing haptic-off toggles). This reference replaces the abbreviated haptic section above with production-depth guidance.

M3 Expressive Spring-Based Motion Model See mobile-ux-design/references/ios26-liquid-glass-material3-expressive.md for the Material 3 Expressive motion system that fundamentally replaces duration-based easing with physics-based spring parameters (stiffness, damping ratio, mass). Key spring presets to reference:

  • Responsive: stiffness 1500, damping ratio 1.0 — critically damped, snappy UI feedback
  • Expressive: stiffness 380, damping ratio 0.7 — slight overshoot, personality-rich transitions
  • Gentle: stiffness 200, damping ratio 0.85 — soft, elegant movements for subtle state changes
  • Bouncy: stiffness 500, damping ratio 0.5 — pronounced overshoot for playful, celebratory moments

This spring model supersedes the traditional cubic-bezier easing approach for M3-based design systems and aligns with Apple's spring animation defaults in SwiftUI. When advising on motion design for modern mobile and cross-platform projects, prefer spring parameters over duration-plus-easing-curve specifications.

Key Sources

  • Thomas, F. & Johnston, O. "The Illusion of Life" (Disney animation principles)
  • Norman, D. (2004). "Emotional Design"
  • Material Design motion guidelines
  • Apple Human Interface Guidelines — Motion
  • Google Web Vitals animation performance guidance

平台分布

Codex

33.55%
按下载量换算2,547

Claude

30.04%
按下载量换算2,281

Cursor

20.25%
按下载量换算1,537

Gemini CLI

8.68%
按下载量换算659

安全审计

暂无安全审计结果可展示。

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。目前只有一个公开来源,建议同时核对源仓库。

继续浏览同类 Skills