Token导航 LogoToken导航TokenDH.com
待分类操作浏览器github未标认证来源可访问许可证需确认审计通过

material-design-3-motion材料设计 3 运动

Agent Skill

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

总安装

396

周安装

16

GitHub Stars

2

下载量

124
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

请帮我安装这个 Agent Skill:material-design-3-motion(材料设计 3 运动)
来源仓库:https://github.com/shelbeely/shelbeely-agent-skills
仓库路径:skills/material-design-3-motion
安装命令:
npx skills add https://github.com/shelbeely/shelbeely-agent-skills --skill material-design-3-motion
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/shelbeely/shelbeely-agent-skills --skill material-design-3-motion

简介

material-design-3-motion 用于辅助界面设计、视觉规范、排版、配色和布局优化,适合生成 UI 方案或改进组件层级。

  • 适用于需要结合品牌与设计系统的视觉设计任务。
  • 通过 npx skills add 命令从 GitHub 仓库安装并使用该技能。
  • 使用时需结合现有品牌与用户任务,不应只堆装饰元素。
  • 涉及真实页面改动时,应通过截图或浏览器预览检查文本溢出与对齐。

SKILL.md

Material Design 3 Motion and Animation

Overview

This skill guides the implementation of Material Design 3 (M3) Expressive motion principles to create springy, natural-feeling animations that enhance usability and delight users.

Keywords: Material Design 3, M3, motion, animation, transitions, micro-interactions, easing, duration, spring physics, expressive motion, haptics, physics-based animation

Core Principles

Expressive Motion Philosophy

M3 Expressive motion is designed to feel alive, natural, and responsive:

  1. Physics-Based Springs: Use spring-based animations governed by stiffness, damping, and velocity — replacing traditional cubic-bezier easing for more natural, lively motion
  2. Purposeful Motion: Every animation should serve a purpose—guiding attention, providing feedback, or showing relationships
  3. Responsive Feel: Motion responds to user input with appropriate speed and timing
  4. Spatial Coherence: Elements move in ways that respect spatial relationships and physics
  5. Haptic Integration: Pair spring animations with platform-native haptic feedback for tactile reinforcement

Motion Modes

Expressive Motion (Default for M3 Expressive):

  • Overshoots, bounces, and adds energy
  • Ideal for touch interactions and hero moments
  • Creates a playful, emotionally resonant feel
  • Uses higher spring energy and pronounced bounce

Standard Motion (Utilitarian flows):

  • Restrained, minimal bounce
  • Better for productivity-focused or system-critical flows
  • Natural feel without excess playfulness

Legacy Motion (Compatibility):

  • Traditional easing for backwards compatibility
  • Use only when spring physics cannot be applied

Spring Physics Parameters

M3 Expressive motion uses three key physics parameters instead of traditional time/easing curves:

  1. Stiffness: Controls how "hard" the spring is — higher stiffness means the animation finishes more quickly
  2. Damping: Determines how quickly the bounce fades out — a damping value of 1 eliminates bounce completely
  3. Initial Velocity: Sets the initial speed, influencing overall timing and feel
SchemeStiffnessDampingBounce Effect
ExpressiveHighMediumPronounced overshoot
StandardMediumHighMinimal/none

Animation Types

1. Transitions

Enter Transitions (Elements appearing):

  • Fade + Scale: Elements fade in while scaling from 80% to 100%
  • Fade + Slide: Elements slide in from edge while fading
  • Container Transform: Morphing one container into another

Exit Transitions (Elements disappearing):

  • Fade + Scale: Elements scale down to 80% while fading out
  • Fade + Slide: Elements slide away while fading
  • Keep exits faster than enters (maintain forward momentum)

Shared Element Transitions (Between screens/states):

  • Morph containers smoothly between views
  • Maintain visual continuity
  • Use container transform pattern

2. Micro-interactions

Hover States:

  • Subtle elevation change (add shadow)
  • Color shift using state layer
  • Scale slightly (1.02x-1.05x)
  • Duration: 100-200ms

Focus States:

  • Outline or ring animation
  • Scale or elevation change
  • Duration: 200-300ms

Press/Touch States:

  • Ripple effect from touch point
  • Scale down slightly (0.98x)
  • State layer with opacity
  • Duration: 100-150ms

Loading States:

  • Shimmer or skeleton screens
  • Circular progress indicators
  • Linear progress bars
  • Continuous, smooth motion

3. Complex Animations

Stagger Animations:

  • Animate list items with incremental delay
  • Delay between items: 30-50ms
  • Creates cascade effect

Choreographed Animations:

  • Multiple elements moving in coordination
  • Use animation-delay for orchestration
  • Maintain spatial relationships

Morphing Shapes:

  • Smooth path interpolation between shapes
  • Variable corner radius transitions
  • Use for state changes and transformations

Duration Guidelines

Standard Durations

Extra Small (50-100ms):

  • Icon state changes
  • Tooltip appearances
  • Simple opacity changes

Small (100-200ms):

  • Button hover states
  • Simple scale animations
  • Color transitions

Medium (200-300ms):

  • Modal dialogs
  • Navigation transitions
  • Card expansions

Large (300-500ms):

  • Page transitions
  • Complex transformations
  • Sheet presentations

Extra Large (500ms+):

  • Major state changes
  • Full screen transitions
  • Use sparingly

Context-Based Adjustments

  • Mobile: Slightly faster (0.8x-0.9x of base duration)
  • Desktop: Standard durations
  • Reduced Motion: Reduce to 10-20% of standard duration or disable
  • Large Elements: Increase duration proportionally

Spring Physics Implementation

Expressive Spring (Default for M3 Expressive)

/* CSS with expressive spring-like bezier approximation */
transition-timing-function: cubic-bezier(0.05, 0.7, 0.1, 1.0);

/* Enhanced linear() for expressive spring with overshoot */
transition-timing-function: linear(
  0, 0.004, 0.016 2.5%, 0.063 5%, 0.141, 0.25,
  0.391 11.3%, 0.563, 0.765, 1.000 20%, 1.066 23.8%,
  1.109 27.5%, 1.130 31.3%, 1.138 35%, 1.136 38.8%,
  1.121 46.3%, 1.093 53.8%, 1.057 61.3%, 1.025 68.8%,
  1.005 77.5%, 0.997 87.5%, 1
);

Standard Spring

/* CSS with standard spring-like bezier approximation */
transition-timing-function: cubic-bezier(0.2, 0.0, 0, 1.0);

/* CSS linear() for better standard spring approximation */
transition-timing-function: linear(
  0, 0.009, 0.035 2.1%, 0.141 4.4%, 0.723 12.9%,
  0.938 16.7%, 1.017, 1.077, 1.121, 1.149 24.3%,
  1.159, 1.163, 1.161, 1.154 29.9%, 1.129 32.8%,
  1.051 39.6%, 1.017 43.1%, 0.991, 0.977 51%,
  0.974 53.8%, 0.975 57.1%, 0.997 69.8%, 1.003 76.9%, 1
);

JavaScript (Web Animations API)

// Expressive spring animation
element.animate(
  [
    { transform: 'scale(0)', opacity: 0 },
    { transform: 'scale(1)', opacity: 1 }
  ],
  {
    duration: 300,
    easing: 'cubic-bezier(0.05, 0.7, 0.1, 1.0)',
    fill: 'forwards'
  }
);

// Standard spring animation
element.animate(
  [
    { transform: 'translateY(20px)', opacity: 0 },
    { transform: 'translateY(0)', opacity: 1 }
  ],
  {
    duration: 250,
    easing: 'cubic-bezier(0.2, 0.0, 0, 1.0)',
    fill: 'forwards'
  }
);

Choosing Expressive vs Standard Motion

ScenarioMotion ModeWhy
Button press feedbackExpressiveUser-triggered, benefits from bounce
Page transitionStandardFunctional, should not distract
Loading completionExpressiveCelebratory moment of delight
Form validationStandardUtilitarian feedback
FAB expansionExpressiveKey interaction with visual emphasis
List scrollStandardContinuous motion, should be smooth
Shape morphingExpressiveVisual storytelling moment
Tooltip appearanceStandardInformational, should not distract

Haptics Integration

M3 Expressive recommends pairing spring-driven animations with platform-native haptic feedback:

Principles

  1. Coordinate with Motion: Haptic effects should fire at the key moment of the animation (e.g., at the point of overshoot or completion)
  2. Match Intensity: Gentle haptics for subtle interactions, stronger for significant state changes
  3. Platform-Native: Use the platform's haptic engine for the most natural feel
  4. Respect Preferences: Honor user haptic settings and provide accessibility options

Web Implementation

// Pair haptic feedback with expressive motion
function expressivePress(element) {
  // Trigger haptic feedback
  if (navigator.vibrate) {
    navigator.vibrate(10); // Short, subtle haptic
  }

  // Trigger spring animation
  element.animate([
    { transform: 'scale(1)' },
    { transform: 'scale(0.95)' },
    { transform: 'scale(1.02)' },
    { transform: 'scale(1)' }
  ], {
    duration: 300,
    easing: 'cubic-bezier(0.05, 0.7, 0.1, 1.0)'
  });
}

Implementation Patterns

Container Transform

Smoothly morph from one container to another:

// Using View Transitions API (modern browsers)
document.startViewTransition(() => {
  // Update DOM
  container.classList.toggle('expanded');
});

// CSS
::view-transition-old(container),
::view-transition-new(container) {
  animation-duration: 300ms;
  animation-timing-function: cubic-bezier(0.2, 0.0, 0, 1.0);
}

Shared Axis Transition

Elements exit and enter along a shared axis:

/* X-axis shared transition */
.exit-left {
  animation: exit-left 300ms cubic-bezier(0.2, 0.0, 0, 1.0);
}

.enter-right {
  animation: enter-right 300ms cubic-bezier(0.2, 0.0, 0, 1.0);
}

@keyframes exit-left {
  from { transform: translateX(0); opacity: 1; }
  to { transform: translateX(-100px); opacity: 0; }
}

@keyframes enter-right {
  from { transform: translateX(100px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

Elevation Change

Animate elevation with shadow and transform:

.elevated-card {
  transition:
    box-shadow 200ms cubic-bezier(0.2, 0.0, 0, 1.0),
    transform 200ms cubic-bezier(0.2, 0.0, 0, 1.0);
}

.elevated-card:hover {
  box-shadow:
    0px 4px 8px rgba(0, 0, 0, 0.12),
    0px 8px 16px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

Ripple Effect

Material ripple for touch feedback:

.ripple {
  position: relative;
  overflow: hidden;
}

.ripple::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  transform: translate(-50%, -50%);
  transition: width 0.3s, height 0.3s;
}

.ripple:active::after {
  width: 300%;
  height: 300%;
}

Best Practices

Do's

  1. ✅ Use spring physics for natural motion
  2. ✅ Match animation duration to element size (larger = longer)
  3. ✅ Provide immediate feedback for user interactions
  4. ✅ Use motion to show relationships between elements
  5. ✅ Test animations on lower-end devices
  6. ✅ Respect prefers-reduced-motion setting
  7. ✅ Use stagger animations to make large datasets feel lighter
  8. ✅ Keep motion purposeful and functional

Don'ts

  1. ❌ Don't use linear easing (feels mechanical)
  2. ❌ Don't animate too many properties simultaneously
  3. ❌ Don't make animations too slow (feels sluggish)
  4. ❌ Don't ignore accessibility preferences
  5. ❌ Don't use motion purely for decoration
  6. ❌ Don't animate layout properties excessively (causes reflow)
  7. ❌ Don't use different easing curves randomly

Accessibility

Reduced Motion

Always respect user preferences:

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

Focus Indicators

Ensure animated focus states are still visible:

  • Maintain adequate contrast
  • Don't rely solely on motion for focus indication
  • Use both color and shape changes

Performance

  • Prefer transform and opacity (GPU accelerated)
  • Avoid animating width, height, top, left (causes layout reflow)
  • Use will-change sparingly for complex animations
  • Test on mobile devices and low-end hardware

Motion Tokens

Define motion tokens for consistency. M3 Expressive introduces tokenized spring-based motion:

:root {
  /* Durations */
  --md-sys-motion-duration-short1: 50ms;
  --md-sys-motion-duration-short2: 100ms;
  --md-sys-motion-duration-short3: 150ms;
  --md-sys-motion-duration-short4: 200ms;
  --md-sys-motion-duration-medium1: 250ms;
  --md-sys-motion-duration-medium2: 300ms;
  --md-sys-motion-duration-medium3: 350ms;
  --md-sys-motion-duration-medium4: 400ms;
  --md-sys-motion-duration-long1: 450ms;
  --md-sys-motion-duration-long2: 500ms;
  --md-sys-motion-duration-long3: 550ms;
  --md-sys-motion-duration-long4: 600ms;

  /* Easing — Standard (utilitarian) */
  --md-sys-motion-easing-standard: cubic-bezier(0.2, 0.0, 0, 1.0);
  --md-sys-motion-easing-standard-decelerate: cubic-bezier(0.0, 0.0, 0, 1.0);
  --md-sys-motion-easing-standard-accelerate: cubic-bezier(0.3, 0.0, 1.0, 1.0);

  /* Easing — Expressive (default for M3 Expressive) */
  --md-sys-motion-easing-expressive: cubic-bezier(0.05, 0.7, 0.1, 1.0);
  --md-sys-motion-easing-expressive-decelerate: cubic-bezier(0.05, 0.7, 0.1, 1.0);
  --md-sys-motion-easing-expressive-accelerate: cubic-bezier(0.3, 0.0, 0.8, 0.15);

  /* Easing — Emphasized (legacy naming, same as expressive) */
  --md-sys-motion-easing-emphasized: cubic-bezier(0.05, 0.7, 0.1, 1.0);
  --md-sys-motion-easing-emphasized-decelerate: cubic-bezier(0.05, 0.7, 0.1, 1.0);
  --md-sys-motion-easing-emphasized-accelerate: cubic-bezier(0.3, 0.0, 0.8, 0.15);

  /* Legacy easing */
  --md-sys-motion-easing-legacy: cubic-bezier(0.4, 0.0, 0.2, 1.0);

  /* Expressive tokenized motion (new in M3 Expressive) */
  --md-sys-motion-expressive-fast-spatial: cubic-bezier(0.05, 0.7, 0.1, 1.0);
  --md-sys-motion-expressive-fast-effects: cubic-bezier(0.2, 0.0, 0, 1.0);
  --md-sys-motion-expressive-slow-spatial: cubic-bezier(0.05, 0.7, 0.1, 1.0);
  --md-sys-motion-expressive-slow-effects: cubic-bezier(0.2, 0.0, 0, 1.0);
}

Checklist for Motion Implementation

When implementing M3 motion, ensure:

  • Spring-based physics easing is used (not linear or ease-in-out)
  • Expressive vs standard motion modes are chosen appropriately per context
  • Durations match element size and complexity
  • Reduced motion preferences are respected
  • Only transform and opacity are animated (when possible)
  • Hover, focus, and press states have appropriate feedback
  • Page transitions feel smooth and coherent
  • Motion serves a functional purpose
  • Stagger animations are used for lists
  • All animations are tested on mobile devices
  • Motion tokens are defined and used consistently (including expressive tokens)
  • Container transforms are used for view transitions
  • Ripple effects are implemented for touch targets
  • Haptic feedback is coordinated with spring animations where appropriate
  • Shape morphing animations use expressive easing

Resources

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

37.66%
按下载量换算47

Claude

28.66%
按下载量换算36

Cursor

19.44%
按下载量换算24

Gemini CLI

9.72%
按下载量换算12

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

操作浏览器

该 Skill 可能涉及浏览器控制能力,使用时可能读取或操作网页内容,需要在受控环境中确认权限边界。

安装前确认

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

来源信息

继续浏览同类 Skills