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 從公開儲存庫中收錄這些內容。

檢舉或申請下架