Accessible Motion

dylantarre/animation-principles/skills/01-by-domain/accessible-motion

作者 dylantarre83597134ba8f無授權條款99 個星標收錄於 2026年10月8日更新於 2026年10月8日儲存庫9 個月前更新

Use when implementing reduced motion alternatives, vestibular-safe animations, WCAG compliance, or designing for users with motion sensitivity.

僅含說明Design & Creative
AI 產生的概覽

指導無障礙動畫設計,將迪士尼十二項動畫原則調整為符合減少動態效果與 WCAG 的介面方案。

功能
這項技能為前庭功能障礙、動態敏感與認知障礙使用者提供安全的動效實作指引。它把迪士尼十二項動畫原則逐條對應到無障礙替代做法,例如以透明度或顏色變化取代擠壓拉伸。內容也涵蓋在 CSS 與 JavaScript 中遵循 prefers-reduced-motion 媒體查詢、安全與有害動效模式清單、相關 WCAG 成功準則,以及實作檢查表和測試步驟。
適用情境
適用於建置或審查必須遵循減少動態效果偏好或符合 WCAG 動效要求的介面動畫。也適合處理前庭安全的轉場效果、載入與錯誤狀態,以及任何動效可能造成傷害的互動情境。
執行需求
不需要指令碼或套件,僅為說明性文件。假定具備 CSS 與 JavaScript 的前端環境,並在測試時參考作業系統層級的減少動態效果設定。

Accessible Motion Design

Apply Disney's 12 animation principles while ensuring accessibility for users with vestibular disorders, motion sensitivity, and cognitive disabilities.

Quick Reference

PrincipleAccessible Implementation
Squash & StretchOpacity/color change instead
AnticipationState change indication without motion
StagingFocus management, not motion-based
Straight Ahead / Pose to PoseInstant state changes
Follow Through / OverlappingEliminated or minimal fade
Slow In / Slow OutInstant or very gentle ease
ArcStraight or no movement
Secondary ActionReduced or eliminated
TimingInstant (0ms) or extended duration
ExaggerationRemoved entirely
Solid DrawingStatic visual clarity
AppealClarity over personality

Core Principle

Animation should enhance understanding, never hinder it. When motion causes harm, provide alternatives that maintain functionality.

Respecting User Preferences

CSS Media Query

css
/* 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;    }}

JavaScript Detection

javascript
const prefersReducedMotion = window.matchMedia(    '(prefers-reduced-motion: reduce)').matches;
if (prefersReducedMotion) {    // Use instant transitions or subtle fades} else {    // Use full animations}

Principle Adaptations

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.

Safe Motion Patterns

Generally Safe

  • Opacity fades (keep subtle)
  • Color transitions
  • Small scale changes (<5%)
  • Very slow movement (500ms+)
  • Non-repeating animations

Potentially Harmful

  • Parallax scrolling
  • Background movement
  • Zoom animations
  • Spinning/rotating elements
  • Fast repeated animations
  • Large moving areas (>1/4 viewport)

Always Avoid

  • Auto-playing video backgrounds
  • Infinite animations
  • Vestibular-triggering patterns
  • Flashing (seizure risk)
  • Rapid zoom in/out

WCAG Guidelines

WCAG 2.1 Success Criteria

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.

Implementation Checklist

  • prefers-reduced-motion respected globally
  • All animations have reduced/no-motion alternative
  • No auto-playing motion over 5 seconds
  • User can pause/stop any animation
  • No content flashes more than 3x/second
  • Essential functionality works without animation
  • Focus states clear without motion
  • Loading states work without animation
  • Error states visible without motion
  • Form validation static-friendly

Testing

  1. Enable reduced motion in OS settings
  2. Verify all functionality works
  3. Check all states are clearly communicated
  4. Ensure no motion remains that should be reduced
  5. Test with screen reader users
  6. Validate with vestibular disorder users if possible

來源與署名

來源:dylantarre/animation-principles位於skills/01-by-domain/accessible-motion提交8359713

授權條款: 無授權條款

內容歸原作者所有。SourceWeft 從公開儲存庫中收錄這些內容。

檢舉或申請下架