npx skills add https://github.com/pbakaus/impeccable --skill animate分析功能特性,并策略性地添加动画和微交互,以增强理解、提供反馈并创造愉悦体验。
调用 /frontend-design —— 它包含了设计原则、反模式以及上下文收集协议。在继续之前请遵循该协议——如果尚无设计上下文,则必须先运行 /teach-impeccable。此外还需收集:性能约束。
分析在哪些地方添加动效可以提升体验:
如果从代码库中无法明确以上任何一点,请直接询问用户以澄清你无法推断的内容。
关键:尊重 prefers-reduced-motion。始终为需要的用户提供非动画替代方案。
制定有目的的动画计划:
重要:一个精心编排的体验胜过四处散落的动画。专注于高影响力的时刻。
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
在这些类别中系统地添加动效:
为每个动画使用合适的技术:
按用途划分的时长:
缓动曲线(使用这些,而非 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%。
/* 适用于简单、声明式的动画 */
- transitions 用于状态变化
- @keyframes 用于复杂序列
- 仅使用 transform + opacity(GPU 加速)
/* 适用于复杂、交互式的动画 */
- Web Animations API 用于程序化控制
- Framer Motion 用于 React
- GSAP 用于复杂序列
transform 和 opacity,避免布局属性contain@media (prefers-reduced-motion: reduce) {
* {
animation-duration: 0.01ms !important;
animation-iteration-count: 1 !important;
transition-duration: 0.01ms !important;
}
}
切勿:
prefers-reduced-motion——这是无障碍性违规全面测试动画:
记住:动效应增强理解并提供反馈,而不仅仅是装饰。有目的地使用动画,尊重性能约束,并始终考虑无障碍性。优秀的动画是隐形的——它只是让一切感觉恰到好处。
每周安装量
27.3K
仓库
GitHub 星标
13.0K
首次出现
2026年3月4日
安全审计
安装于
codex26.7K
opencode26.5K
github-copilot26.5K
gemini-cli26.5K
cursor26.5K
kimi-cli26.4K
Analyze a feature and strategically add animations and micro-interactions that enhance understanding, provide feedback, and create delight.
Invoke /frontend-design — it contains design principles, anti-patterns, and the Context Gathering Protocol. Follow the protocol before proceeding — if no design context exists yet, you MUST run /teach-impeccable first. Additionally gather: performance constraints.
Analyze where motion would improve the experience:
Identify static areas :
Understand the context :
If any of these are unclear from the codebase, ask the user directly to clarify what you cannot infer.
CRITICAL : Respect prefers-reduced-motion. Always provide non-animated alternatives for users who need them.
Create a purposeful animation plan:
IMPORTANT : One well-orchestrated experience beats scattered animations everywhere. Focus on high-impact moments.
Add motion systematically across these categories:
Use appropriate techniques for each animation:
Durations by purpose:
Easing curves (use these, not CSS defaults):
/* Recommended - natural deceleration */
--ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1); /* Smooth, refined */
--ease-out-quint: cubic-bezier(0.22, 1, 0.36, 1); /* Slightly snappier */
--ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1); /* Confident, decisive */
/* AVOID - feel dated and tacky */
/* bounce: cubic-bezier(0.34, 1.56, 0.64, 1); */
/* elastic: cubic-bezier(0.68, -0.6, 0.32, 1.6); */
Exit animations are faster than entrances. Use ~75% of enter duration.
/* Prefer for simple, declarative animations */
- transitions for state changes
- @keyframes for complex sequences
- transform + opacity only (GPU-accelerated)
/* Use for complex, interactive animations */
- Web Animations API for programmatic control
- Framer Motion for React
- GSAP for complex sequences
transform and opacity, avoid layout propertiescontain where appropriate@media (prefers-reduced-motion: reduce) {
* {
animation-duration: 0.01ms !important;
animation-iteration-count: 1 !important;
transition-duration: 0.01ms !important;
}
}
NEVER :
prefers-reduced-motion—this is an accessibility violationTest animations thoroughly:
Remember: Motion should enhance understanding and provide feedback, not just add decoration. Animate with purpose, respect performance constraints, and always consider accessibility. Great animation is invisible - it just makes everything feel right.
Weekly Installs
27.3K
Repository
GitHub Stars
13.0K
First Seen
Mar 4, 2026
Security Audits
Gen Agent Trust HubPassSocketPassSnykPass
Installed on
codex26.7K
opencode26.5K
github-copilot26.5K
gemini-cli26.5K
cursor26.5K
kimi-cli26.4K
React 组合模式指南:Vercel 组件架构最佳实践,提升代码可维护性
102,200 周安装