跳到正文
Skillpedia
界面(UI/UX)75k · #2847

flashing-content

它能做什么

这项技能检查网站中是否有快速闪烁的内容,例如动画图片或特效。适用于希望页面安全、无障碍的开发者和设计师。

适用场景

  • ✓当你的网站有闪烁的动画横幅、GIF 或视频的时候。
  • ✓当你添加了会闪动或闪烁的 CSS 动画的时候。
  • ✓当你希望满足动态内容的无障碍安全指南的时候。

技能链接

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

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

使用方法

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

可直接粘贴的消息

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

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

repo: thedaviddias/Front-End-Checklist

热度

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

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能