跳到正文
Skillpedia
网站与界面(前端)75k · #2970

parallax-effects

它能做什么

这个技能检查视差滚动效果,并确保对偏好较少动效的用户将其关闭。它面向希望动效较多的设计对所有人都保持舒适的前端开发者。

适用场景

  • ✓你请智能体检查页面滚动效果对动效敏感用户是否友好的时候。
  • ✓设计中使用了视差,而部分访客反映头晕或不适的时候。
  • ✓你在页面中添加动效,并希望尊重减少动效设置的时候。

技能链接

https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/parallax-effects/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/parallax-effects/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 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.

repo: thedaviddias/Front-End-Checklist

热度

GitHub 星标
75k
排名
#2970
许可证
MIT
更新时间
2026/10/31

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能