减少动态偏好
尊重系统的“减少动态效果”设置:用户开了,视差和大动效就别播,改成淡入或直接显示——这是无障碍,不是可选项。
模拟减少动态效果
实现提示词
Honor prefers-reduced-motion: disable parallax, autoplay and large transitions; use instant display or simple fades instead.When prefers-reduced-motion is set: all keyframe animations degrade to opacity-only fades under 200ms.设计规范条目
### Reduced Motion (#reduced-motion) Category: Motion Reduced motion: honor the OS setting. When on, skip parallax and big animations—use fades or instant display. Accessibility, not optional. - Do: Honor prefers-reduced-motion: disable parallax, autoplay and large transitions - Do: use instant display or simple fades instead With motion: When prefers-reduced-motion is set: all keyframe animations degrade to opacity-only fades under 200ms. Live demo: https://uidesignmd.com/guides/reduced-motion/