parallax-effects
它能做什么
这个技能检查视差滚动效果,并确保对偏好较少动效的用户将其关闭。它面向希望动效较多的设计对所有人都保持舒适的前端开发者。
适用场景
- ✓你请智能体检查页面滚动效果对动效敏感用户是否友好的时候。
- ✓设计中使用了视差,而部分访客反映头晕或不适的时候。
- ✓你在页面中添加动效,并希望尊重减少动效设置的时候。
技能链接
https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/parallax-effects/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“我的网站有一个视差效果,可能让一些访客头晕。请帮我让它遵循减少动效的设置吗?”
每周 5 个新技能,1 分钟读完。
工作原理
智能体会找出背景和前景以不同速度移动的元素。它会用 no-preference 媒体查询包裹该效果,并添加内容相同的静态备用版本,同时建议提供全站关闭动效的选项。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Provide alternatives to parallax effects
Parallax creates a mismatch between what the eyes see and what the inner ear senses—triggering dizziness, nausea, and vertigo for users with vestibular disorders.
Quick Reference
- Disable parallax when prefers-reduced-motion is set
- Parallax creates depth mismatch triggering vestibular disorders
- Provide user toggle to disable motion effects site-wide
- Ensure essential content is accessible without the effect
Check
Identify parallax effects where background and foreground move at different speeds. Verify these effects are disabled when prefers-reduced-motion is set, and essential content is accessible without the effect.
Fix
Wrap parallax effects in @media (prefers-reduced-motion: no-preference) queries. Provide static fallbacks that convey the same content. Consider adding a user toggle to disable motion effects site-wide.
Explain
Explain how parallax effects create a depth mismatch that can trigger vestibular disorders, causing dizziness, nausea, and disorientation in affected users.
Code Review
Review the rendered markup and interactive states that affect Provide alternatives to parallax effects. 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/parallax-effects
常见问题
视差为什么会造成问题?
这个技能说,深度的错位可能引发前庭障碍,导致头晕、恶心和方向感混乱。
什么是 prefers-reduced-motion?
它是一种系统设置,表示网站应减少动效;这个技能利用它来关闭视差。
内容仍然需要可见吗?
需要。这个技能说,即使没有该效果,重要内容也必须可以访问。
详情
作者的原始描述
Use when reviewing rendered HTML, interactive components, or design-system patterns related to Provide alternatives to parallax effects. Check native semantics first, then inspect keyboard behavior, focus flow, accessible names, and screen-reader output where relevant.
热度
- GitHub 星标
- 75k
- 排名
- #2970
- 许可证
- MIT
- 更新时间
- 2026/10/31
评论
- …
同一仓库的更多技能
frontendchecklist
75k使用命令行工具,依据 380 多条关于无障碍、速度、SEO 和安全的规则,检查前端代码和线上页面。
frontend-checklist-global
75k依据全部 386 条 Front-End Checklist 规则审查前端项目,并为发现的每个问题给出具体修复方法。
404-page
75k检查你的页面缺失提示是否提供有用的链接,并返回真正的 404 状态,帮助迷路的访客找到方向。
about-page
75k审查你的网站是否有清晰的关于页面,说明由谁运营,以建立访客和搜索引擎的信任。