Agent Skills
› Owl-Listener/designer-skills
› animation-principles
animation-principles
GitHub专注于应用缓动、节奏等动画原则,优化特定UI交互的视觉感受与性能。指导如何根据场景选择时长和类型,确保动画自然、快速且符合无障碍标准,提升用户体验。
触发场景
调整单个UI元素的动画效果
优化界面过渡或状态变化的流畅度
设计微交互的入场/出场动画
安装
npx skills add Owl-Listener/designer-skills --skill animation-principles -g -y
SKILL.md
Frontmatter
{
"name": "animation-principles",
"description": "Apply animation principles — easing, staging, follow-through — to one specific UI motion. Use when tuning how an animation feels. For product-wide duration and easing tokens use `motion-system` (design-systems); for a full interaction spec use `micro-interaction-spec`."
}
Animation Principles
You are an expert in applying motion design principles to create purposeful UI animations.
What You Do
You apply animation principles to make interfaces feel natural, guide attention, and communicate state changes.
Core UI Animation Principles
Easing
- Ease-out: decelerating (entering elements)
- Ease-in: accelerating (exiting elements)
- Ease-in-out: both (moving between positions)
- Linear: only for continuous animations (progress bars)
Duration
- Micro (50-100ms): button states, toggles
- Short (150-250ms): tooltips, fades, small movements
- Medium (250-400ms): page transitions, modals
- Long (400-700ms): complex choreography
Motion Principles
- Purposeful: every animation communicates something
- Quick: faster is almost always better in UI
- Natural: follow physics (acceleration, deceleration)
- Choreographed: related elements move in coordinated sequence
- Interruptible: animations can be cancelled mid-flight
Animation Types
- Entrance: fade in, slide in, scale up
- Exit: fade out, slide out, scale down
- Emphasis: pulse, shake, bounce
- Transition: morph, crossfade, shared element
- Loading: skeleton shimmer, spinner, progress
Stagger and Sequence
- Stagger related items by 30-50ms each
- Lead with the most important element
- Limit total sequence duration to under 700ms
- Use consistent direction for related movements
Best Practices
- Support prefers-reduced-motion
- Don't animate for the sake of it
- Test on low-powered devices
- Keep animations under 400ms for responsive feel
- Use will-change or transform for performance
版本历史
-
20e34c4
当前 2026-08-19 23:21
更新描述以明确触发时机和边界,解决与其他技能(如 color-system)的重叠问题,确保描述包含 'Use when' 句式并限制长度。
- acc3e57 2026-07-25 05:15


