Chuyển đến nội dung
Skillpedia
Website và giao diện (frontend)75k · #2991

reduced-motion

Skill này làm gì

Skill này kiểm tra hoạt ảnh trên website xem có tôn trọng cài đặt giảm chuyển động và nội dung nhấp nháy không, rồi thêm phương án thay thế khi cần. Skill dành cho lập trình viên front-end muốn hoạt ảnh thoải mái cho mọi người.

Khi nào nên dùng

  • ✓Khi bạn yêu cầu agent kiểm tra xem hoạt ảnh trên website có tôn trọng cài đặt giảm chuyển động không.
  • ✓Khi website có chuyển động nhấp nháy hoặc mạnh có thể ảnh hưởng tới người có rối loạn tiền đình hoặc động kinh.
  • ✓Khi bạn xây website có hoạt ảnh đắm chìm và muốn có cảnh báo cùng phương án thay thế.

Liên kết skill

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

Sao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.

Cách dùng

Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.

Tin nhắn có sẵn để dán

Hãy dùng skill này để giúp tôi: https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/reduced-motion/SKILL.md Đọc tệp SKILL.md tại liên kết đó và làm theo hướng dẫn cho việc của tôi.
Bạn muốn AI tự tìm những skill như thế này?Cài MCP Skillpedia miễn phí: chỉ một dòng, và AI sẽ tìm trong 15.000+ skill trước mỗi việc.Cài đặt trong 1 phút →

Ví dụ cách nhờ AI

“Bạn có thể làm cho hoạt ảnh trên website của tôi tắt hoặc dịu đi với khách truy cập đã bật giảm chuyển động không?”

5 skill mới mỗi tuần. Đọc chỉ 1 phút.

Cách hoạt động

Agent bọc các hoạt ảnh không thiết yếu trong media query giảm chuyển động và thay chuyển động bằng thay đổi đơn giản về độ mờ hoặc màu sắc. Agent cũng kiểm tra không có gì nhấp nháy quá ba lần mỗi giây và gợi ý điều khiển để tạm dừng chuyển động.

Nội dung kỹ thuật (SKILL.md gốc)

Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.

Respect reduced motion preferences

Animations can trigger vestibular disorders, migraines, and seizures—respecting motion preferences makes your site usable for millions of affected users.

Quick Reference

  • Use prefers-reduced-motion media query to disable non-essential animations
  • Never flash content more than 3 times per second (seizure risk)
  • Replace motion with opacity/color transitions when reduced motion is enabled
  • Provide user controls to pause or disable animations

Check

Verify that animations respect prefers-reduced-motion, no content flashes more than 3 times per second, parallax and scrolljacking effects have alternatives, and motion warnings appear before pages with excessive animation.

Fix

Use @media (prefers-reduced-motion: reduce) to disable animations. Ensure no flashing exceeds 3 flashes/second. Avoid motion behind static text. Provide motion warnings for immersive experiences.

Explain

Explain how motion affects users with vestibular disorders, photosensitive epilepsy, and cognitive disabilities, and why providing motion controls and warnings is essential for inclusive design.

Code Review

Review the rendered markup and interactive states that affect Respect reduced motion preferences. 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/reduced-motion

Câu hỏi thường gặp

Cài đặt giảm chuyển động là gì?

Đó là tùy chọn hệ thống yêu cầu website hạn chế chuyển động, và skill dùng nó để quyết định hoạt ảnh nào bị tắt.

Vì sao phải giới hạn nhấp nháy?

Skill nói nhấp nháy quá ba lần mỗi giây có thể gây co giật.

Khách truy cập có nên có điều khiển riêng không?

Có. Skill gợi ý cho người dùng tạm dừng hoặc tắt hoạt ảnh trên website.

Chi tiết

Mô tả gốc của tác giả

Use when reviewing rendered HTML, interactive components, or design-system patterns related to Respect reduced motion preferences. Check native semantics first, then inspect keyboard behavior, focus flow, accessible names, and screen-reader output where relevant.

repo: thedaviddias/Front-End-Checklist

Độ phổ biến

Sao GitHub
75k
Vị trí xếp hạng
#2991
Giấy phép
MIT
Cập nhật
31/10/2026

Skill này có hữu ích không?

0

Đăng nhập để bình chọn.

Bình luận

  • …

Thêm skill từ kho mã này

Skill tương tự