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

scrolljacking

Skill này làm gì

Skill này kiểm tra xem website có thay đổi cách cuộn gốc không, như tốc độ, hướng hoặc nhảy từng trang, rồi gỡ các thay đổi đó. Skill dành cho lập trình viên front-end muốn cuộn trang tự nhiên với mọi người.

Khi nào nên dùng

  • ✓Khi bạn yêu cầu agent kiểm tra xem website có thay đổi cách cuộn trang không.
  • ✓Khi khách truy cập báo việc cuộn có cảm giác bị kẹt, giật hoặc khó kiểm soát.
  • ✓Khi bạn thêm hiệu ứng cuộn tùy chỉnh và muốn tránh nó làm rối điều hướng.

Liên kết skill

https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/scrolljacking/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/scrolljacking/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

“Khách truy cập nói việc cuộn trên website của tôi có cảm giác lạ và giật. Bạn có thể gỡ mọi mã thay đổi cách cuộn không?”

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

Cách hoạt động

Agent tìm JavaScript ghi đè tốc độ cuộn, hướng cuộn hoặc kích hoạt điều hướng khi cuộn. Agent gỡ hoặc điều chỉnh mã đó, giữ lại hiệu ứng tùy chỉnh thiết yếu và thêm cách để tắt nó.

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.

Avoid scrolljacking and custom scroll behavior

Scrolljacking breaks user expectations, interferes with assistive technologies, and creates unpredictable experiences that frustrate users with motor impairments or cognitive disabilities.

Quick Reference

  • Never override native scroll speed or direction
  • Avoid scroll-triggered navigation (one page per scroll)
  • Scrolljacking breaks assistive technologies and user expectations
  • If custom scrolling is essential, provide a way to disable it

Check

Test scrolling behavior and verify it feels native. Check that scroll speed is not modified, scroll direction is not inverted, and scroll events are not hijacked for animations or navigation without user consent.

Fix

Remove JavaScript that overrides default scroll behavior. If custom scrolling is essential, respect prefers-reduced-motion and provide a way to disable custom scroll effects.

Explain

Explain how scrolljacking disrupts expected navigation patterns, interferes with assistive technologies, and creates unpredictable experiences for users with motor impairments or cognitive disabilities.

Code Review

Review the rendered markup and interactive states that affect Avoid scrolljacking and custom scroll behavior. 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/scrolljacking

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

Scrolljacking là gì?

Đó là khi website thay đổi hành vi cuộn bình thường, khiến một lần cuộn không đưa trang đi theo cách khách truy cập mong đợi.

Ai bị ảnh hưởng bởi điều này?

Skill nói nó có thể gây khó chịu cho người có khiếm khuyết vận động hoặc nhận thức, và có thể làm nhiễu công nghệ hỗ trợ.

Nếu cần hiệu ứng cuộn tùy chỉnh thì sao?

Skill nói hãy tôn trọng cài đặt giảm chuyển động và cung cấp cách tắt hiệu ứng.

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 Avoid scrolljacking and custom scroll behavior. 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
#3010
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ự