flashing-content
它能做什么
这项技能检查网站中是否有快速闪烁的内容,例如动画图片或特效。适用于希望页面安全、无障碍的开发者和设计师。
适用场景
- ✓当你的网站有闪烁的动画横幅、GIF 或视频的时候。
- ✓当你添加了会闪动或闪烁的 CSS 动画的时候。
- ✓当你希望满足动态内容的无障碍安全指南的时候。
技能链接
https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/flashing-content/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请检查我的动画,确保没有任何动画闪烁得太快。”
每周 5 个新技能,1 分钟读完。
工作原理
智能体会检查动画和媒体是否存在快速闪烁,尤其是红色闪烁。它会建议放慢速度,或替换为柔和的淡入淡出或静态效果。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Prevent seizure-triggering flashing content
Flashing content between 3-60 Hz can trigger seizures in people with photosensitive epilepsy—this is a critical safety requirement, not just an accessibility preference.
Quick Reference
- Never flash content more than 3 times per second (WCAG Level A)
- Flashing area must be smaller than 25% of viewport
- Red flashing is especially dangerous—avoid entirely
- Test GIFs, videos, and CSS animations for rapid flashing
Check
Verify no content flashes more than 3 times per second, and that any flashing content occupies less than 25% of the viewport. Test animated GIFs, videos, and CSS animations for rapid flashing patterns.
Fix
Remove or slow down rapid flashing animations. Use animation tools to measure flash frequency. Replace flashing effects with fade transitions or static alternatives that convey the same information.
Explain
Explain how flashing content between 3-60 Hz can trigger seizures in people with photosensitive epilepsy, and why this is a critical accessibility and safety requirement under WCAG 2.3.1.
Code Review
Review the rendered markup and interactive states that affect Prevent seizure-triggering flashing content. 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/flashing-content
常见问题
为什么快速闪烁是安全问题?
每秒约 3 到 60 次的闪烁,可能会诱发部分光敏性癫痫患者的癫痫发作。
这项技能使用什么限制?
它规定内容每秒闪烁不应超过 3 次,且闪烁区域应小于屏幕的 25%。
这适用于视频和 GIF 吗?
适用。这项技能指出,应测试 GIF、视频和 CSS 动画是否存在快速闪烁。
详情
作者的原始描述
Use when reviewing rendered HTML, interactive components, or design-system patterns related to Prevent seizure-triggering flashing content. Check native semantics first, then inspect keyboard behavior, focus flow, accessible names, and screen-reader output where relevant.
热度
- GitHub 星标
- 75k
- 排名
- #2847
- 许可证
- MIT
- 更新时间
- 2026/10/31
评论
- …
同一仓库的更多技能
frontendchecklist
75k使用命令行工具,依据 380 多条关于无障碍、速度、SEO 和安全的规则,检查前端代码和线上页面。
frontend-checklist-global
75k依据全部 386 条 Front-End Checklist 规则审查前端项目,并为发现的每个问题给出具体修复方法。
404-page
75k检查你的页面缺失提示是否提供有用的链接,并返回真正的 404 状态,帮助迷路的访客找到方向。
about-page
75k审查你的网站是否有清晰的关于页面,说明由谁运营,以建立访客和搜索引擎的信任。