Accessibility Issues

dylantarre/animation-principles/skills/12-by-problem-type/accessibility-issues

作者 dylantarre83597134ba8f无许可证99 个星标收录于 2026年10月8日更新于 2026年10月8日仓库9个月前更新

Use when animation excludes users with vestibular disorders, cognitive disabilities, or assistive technology needs

仅含说明Design & Creative
AI 生成的概览

指导如何让网页动画对前庭障碍、认知障碍或使用辅助技术的用户更友好。

功能
该技能围绕迪士尼动画原则(如挤压拉伸、夸张、节奏和弧线)提供动画无障碍问题的诊断与修复指导。内容包括问题迹象、按原则给出的修复方法、快速修复、排查清单,以及用于遵循减少动态效果偏好的 CSS 和 JavaScript 代码示例。产出的是建议与代码片段,而非文件。
适用场景
当动画可能排斥前庭障碍、认知障碍或依赖辅助技术的用户时使用,例如出现晕动症投诉、屏幕阅读器混乱或闪烁风险。也适用于检查自动播放、焦点可见性和暂停控制等动画界面问题。
运行要求
无需任何工具、软件包或凭据;仅为说明性内容,不附带脚本。

Accessibility Issues

Make animations inclusive using Disney's principles thoughtfully.

Problem Indicators

  • Motion sickness complaints
  • Vestibular disorder triggers
  • Screen reader confusion
  • Cognitive overload
  • Seizure risk (flashing)
  • Keyboard focus lost during animation

Diagnosis by Principle

Squash and Stretch

Issue: Excessive distortion causes disorientation Fix: Reduce or eliminate squash/stretch for users with prefers-reduced-motion. Use opacity changes instead.

Secondary Action

Issue: Too many moving elements Fix: Limit to one animated element at a time. Secondary actions should be subtle or removed.

Exaggeration

Issue: Dramatic motion triggers vestibular responses Fix: Reduce scale, rotation, and position changes. Keep movements small and predictable.

Timing

Issue: Animations too fast or too slow Fix: Provide consistent, predictable timing. Avoid sudden speed changes.

Arcs

Issue: Curved motion paths cause tracking difficulty Fix: Use linear motion for essential UI. Save arcs for optional decorative elements.

Quick Fixes

  1. Respect prefers-reduced-motion - Always check and honor
  2. No autoplay animation - Let users trigger motion
  3. Keep focus visible - Never animate focus indicator away
  4. Announce changes - Use ARIA live regions for dynamic content
  5. Provide pause controls - For any looping animation

Troubleshooting Checklist

  • Does animation respect prefers-reduced-motion?
  • Is there a way to pause/stop animations?
  • Are state changes announced to screen readers?
  • Does keyboard focus remain visible and logical?
  • Is flash rate under 3 per second?
  • Can users complete tasks without animation?
  • Are animations triggered by user action (not autoplay)?
  • Test with screen reader enabled

Code Pattern

css
@media (prefers-reduced-motion: reduce) {  *,  *::before,  *::after {    animation-duration: 0.01ms !important;    animation-iteration-count: 1 !important;    transition-duration: 0.01ms !important;  }}
js
// Check preference in JSconst prefersReducedMotion = window.matchMedia(  '(prefers-reduced-motion: reduce)').matches;

来源与署名

来源:dylantarre/animation-principles位于skills/12-by-problem-type/accessibility-issues提交8359713

许可证: 无许可证

内容归原作者所有。SourceWeft 从公开仓库中收录这些内容。

举报或申请下架