重要前提
安装AI Skills的关键前提是:必须科学上网,且开启TUN模式,这一点至关重要,直接决定安装能否顺利完成,在此郑重提醒三遍:科学上网,科学上网,科学上网。查看完整安装教程 →
accessible-motion by dylantarre/animation-principles
npx skills add https://github.com/dylantarre/animation-principles --skill accessible-motion在应用迪士尼的 12 条动画原则时,确保为前庭障碍、运动敏感和认知障碍的用户提供无障碍体验。
| 原则 | 无障碍实现方案 |
|---|---|
| 挤压与拉伸 | 改用透明度/颜色变化 |
| 预备动作 | 无运动的静态状态变化指示 |
| 演出布局 | 焦点管理,而非基于动效 |
| 逐帧动画与关键帧动画 | 瞬时状态变化 |
| 跟随动作与重叠动作 | 消除或最小化淡入淡出效果 |
| 慢入慢出 | 瞬时或极其平缓的缓动效果 |
| 弧线运动 | 直线运动或无运动 |
| 次要动作 | 减少或消除 |
| 时间节奏 | 瞬时(0 毫秒)或延长持续时间 |
| 夸张手法 | 完全移除 |
| 扎实的描绘 | 静态视觉清晰度 |
| 吸引力 | 清晰度优先于个性表现 |
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
动画应增强理解,绝不能阻碍理解。当动效造成伤害时,应提供能保持功能性的替代方案。
/* 默认:完整动画 */
.element {
transition: transform 300ms ease-out;
}
/* 减少动效偏好 */
@media (prefers-reduced-motion: reduce) {
.element {
transition: opacity 200ms ease-out;
/* 或完全不使用过渡效果 */
transition: none;
}
}
const prefersReducedMotion = window.matchMedia(
'(prefers-reduced-motion: reduce)'
).matches;
if (prefersReducedMotion) {
// 使用瞬时过渡或微妙的淡入淡出效果
} else {
// 使用完整动画
}
挤压与拉伸 → 替换为透明度或颜色变化。按钮可以在按下时变暗,而不是压缩。加载指示器可以通过透明度脉动,而不是弹跳。
预备动作 → 使用静态指示器。立即显示加载状态,而不是动画准备。悬停状态立即改变颜色,而不是缩放。
演出布局 → 使用焦点管理和视觉层次结构。滚动到内容,而不是动画显示。使用静态高亮,而不是基于动效的注意力引导。
动效类型 → 用瞬时状态变化替代过渡效果。切换开关瞬间切换位置。模态框立即出现。菜单显示时不使用动画。
跟随动作 → 消除。元素立即到达最终状态。没有稳定、弹跳或过冲效果。
缓动效果 → 要么瞬时(0 毫秒),要么非常平缓、延长持续时间(500 毫秒以上)且移动距离最小。如果必须使用动效,则要缓慢且微妙。
弧线/路径运动 → 仅使用直线运动(如果有的话)。优先使用透明度过渡,而不是位置变化。不使用圆形或复杂的运动路径。
次要动作 → 显著减少或消除。每次交互提供单一、清晰的反馈。不使用级联或交错的动画。
时间节奏 → 两种方法:瞬时(0 毫秒)以获得快速的反馈,或延长(500 毫秒以上)以获得平缓的感知。避免 150-400 毫秒的范围——这个速度足以被注意到,但又慢到足以引发症状。
夸张手法 → 完全移除。仅使用字面的、成比例的视觉反馈。没有过冲、弹跳或戏剧性效果。
扎实的描绘 → 在静态状态下保持视觉清晰度。设计必须在没有任何动画的情况下正常工作。强对比度和清晰的层次结构。
吸引力 → 通过清晰度而非个性来吸引用户。干净、可预测的交互。用户对界面稳定性有信心。
2.3.3 交互触发的动画 (AAA) 由交互触发的动效应可被禁用,除非是必需的。
2.2.2 暂停、停止、隐藏 (A) 持续时间超过 5 秒的动态内容必须可以暂停。
2.3.1 三次闪烁 (A) 任何内容每秒闪烁不得超过 3 次。
prefers-reduced-motion每周安装量
62
代码仓库
GitHub 星标数
18
首次出现
2026 年 1 月 24 日
安全审计
已安装于
codex55
gemini-cli50
opencode49
cursor47
claude-code44
github-copilot44
Apply Disney's 12 animation principles while ensuring accessibility for users with vestibular disorders, motion sensitivity, and cognitive disabilities.
| Principle | Accessible Implementation |
|---|---|
| Squash & Stretch | Opacity/color change instead |
| Anticipation | State change indication without motion |
| Staging | Focus management, not motion-based |
| Straight Ahead / Pose to Pose | Instant state changes |
| Follow Through / Overlapping | Eliminated or minimal fade |
| Slow In / Slow Out | Instant or very gentle ease |
| Arc | Straight or no movement |
| Secondary Action | Reduced or eliminated |
| Timing | Instant (0ms) or extended duration |
| Exaggeration | Removed entirely |
| Solid Drawing | Static visual clarity |
| Appeal | Clarity over personality |
Animation should enhance understanding, never hinder it. When motion causes harm, provide alternatives that maintain functionality.
/* Default: Full animation */
.element {
transition: transform 300ms ease-out;
}
/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
.element {
transition: opacity 200ms ease-out;
/* Or no transition at all */
transition: none;
}
}
const prefersReducedMotion = window.matchMedia(
'(prefers-reduced-motion: reduce)'
).matches;
if (prefersReducedMotion) {
// Use instant transitions or subtle fades
} else {
// Use full animations
}
Squash & Stretch → Replace with opacity or color changes. A button can darken on press instead of compressing. Loading indicators can pulse opacity instead of bouncing.
Anticipation → Use static indicators. Show a loading state immediately rather than animated preparation. Hover states change color instantly rather than scaling.
Staging → Use focus management and visual hierarchy. Scroll to content rather than animated reveals. Static highlighting over motion-based attention.
Motion Types → Instant state changes replace transitions. Toggle switches snap position. Modals appear instantly. Menus show without animation.
Follow Through → Eliminated. Elements reach final state immediately. No settling, bouncing, or overshoot effects.
Easing → Either instant (0ms) or very gentle, extended duration (500ms+) with minimal distance. If using motion, slow and subtle.
Arc/Paths → Straight movement only if any movement. Prefer opacity transitions over positional. No circular or complex motion paths.
Secondary Action → Significantly reduced or eliminated. Single, clear feedback per interaction. No cascading or staggered animations.
Timing → Two approaches: instant (0ms) for snappy feedback, or extended (500ms+) for gentle perception. Avoid 150-400ms range—fast enough to notice, slow enough to trigger symptoms.
Exaggeration → Removed entirely. Literal, proportional visual feedback only. No overshoots, bounces, or dramatic effects.
Solid Drawing → Maintain visual clarity in static states. Design must work without any animation. Strong contrast and clear hierarchy.
Appeal → Appeal through clarity, not personality. Clean, predictable interactions. User confidence in interface stability.
2.3.3 Animation from Interactions (AAA) Motion triggered by interaction can be disabled unless essential.
2.2.2 Pause, Stop, Hide (A) Moving content lasting >5 seconds must be pausable.
2.3.1 Three Flashes (A) No content flashes more than 3 times per second.
prefers-reduced-motion respected globallyWeekly Installs
62
Repository
GitHub Stars
18
First Seen
Jan 24, 2026
Security Audits
Gen Agent Trust HubPassSocketPassSnykPass
Installed on
codex55
gemini-cli50
opencode49
cursor47
claude-code44
github-copilot44
React视图过渡API使用指南:实现原生浏览器动画与状态管理
7,500 周安装
deepTools:NGS数据分析工具包 - ChIP-seq/RNA-seq/ATAC-seq质量控制与可视化
55 周安装
scikit-bio Python生物信息学库:序列分析、系统发育、多样性计算与微生物组数据处理
55 周安装
Python DICOM处理教程:pydicom读取医学影像、元数据操作与格式转换
55 周安装
治疗计划撰写模板与工具 - 专业LaTeX模板、AI图表生成、法规合规
55 周安装
Geniml:基因组区间机器学习Python包,支持BED文件嵌入与单细胞ATAC-seq分析
55 周安装
PennyLane量子计算库:量子机器学习、量子化学与硬件集成全指南
55 周安装