算法艺术创作
algorithmic-art
通过代码和可调参数创作生成艺术与交互式视觉效果。
anchor-smooth-scroll在审查已渲染的 HTML、交互组件或与 Provide instant anchor scroll option 相关的设计系统模式时使用。首先检查原生语义,然后在相关情况下检查键盘行为、焦点流程、无障碍名称和屏幕阅读器的输出。
AI 翻译
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Smooth scroll animations can trigger vertigo, nausea, and disorientation for users with vestibular disorders—instant navigation is safer and often faster.
Click anchor links (same-page navigation) and verify smooth scrolling is disabled when prefers-reduced-motion is set. Confirm anchor navigation works correctly with keyboard and screen readers.
Use scroll-behavior: smooth only within a prefers-reduced-motion media query check. Provide instant scrolling as the default or reduced-motion fallback. Ensure focus moves to the anchor target.
Explain how animated scroll transitions can cause motion sickness and disorientation for users with vestibular disorders, and why instant navigation is often preferable for accessibility.
Review the rendered markup and interactive states that affect Provide instant anchor scroll option. Flag exact elements, roles, labels, focus behavior, or keyboard interactions that violate the rule, and note how to verify the fix with browser accessibility tooling or assistive tech.
For full implementation details, code examples, and framework-specific guidance,
see references/rule.md.
Rule page: https://frontendchecklist.io/rules/accessibility/anchor-smooth-scroll