scrolljacking
できること
このスキルは、サイトがスクロールの速さ、向き、ページ単位の移動などのネイティブな動きを変えていないかを確認し、それらの変更を取り除きます。誰にとっても自然なスクロールを求めるフロントエンドの開発者向けです。
使う場面
- ✓サイトがスクロールの動きを変えていないか確認するようエージェントに頼むとき。
- ✓スクロールがぎこちなく、ガクガクして、操作しにくいと訪問者が報告しているとき。
- ✓カスタムのスクロール効果を追加していて、それがナビゲーションの邪魔にならないようにしたいとき。
スキルのリンク
https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/scrolljacking/SKILL.mdコピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。
使い方
いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。
貼り付け用メッセージ
Claude Code、Codex、Cursorの場合:プロジェクトのフォルダで実行するとスキルがインストールされます。
SKILL.mdをダウンロードして、エージェントのスキル用フォルダに入れてください。
AIへの頼み方の例
“訪問者からスクロールがおかしく、ガクガクすると言われています。スクロールの動きを変えているコードを取り除いてください。”
毎週5つの新しいスキル。1分で読めます。
仕組み
エージェントは、スクロールの速さや向きを上書きしたり、スクロールでページの移動を起こしたりするJavaScriptを探します。それらを取り除くか調整し、必要不可欠なカスタム効果は、無効にする方法を付けて残します。
技術的な内容(元のSKILL.md)
作者による元のテキスト(英語)をGitHubからそのまま表示しています。
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
よくある質問
scrolljackingとは何ですか?
サイトが通常のスクロールの動きを変えてしまい、スクロールしても訪問者が期待するようにページが動かないことです。
誰が影響を受けますか?
このスキルによると、運動機能や認知の障害がある人を困らせ、支援技術の邪魔をすることがあります。
カスタムのスクロール効果が必要な場合はどうしますか?
このスキルは、動きを減らす設定を尊重し、効果を無効にする方法を用意するよう勧めています。
詳細
作者による元の説明
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.
人気
- GitHubのスター
- 75k
- ランキング
- #3010
- ライセンス
- MIT
- 更新日
- 2026/10/31
コメント
- …
このリポジトリの他のスキル
frontendchecklist
75kコマンドラインツールを使って、フロントエンドのコードとライブページを、アクセシビリティ、速度、SEO、セキュリティに関する380以上のルールと照らし合わせて確認します。
frontend-checklist-global
75kフロントエンドのプロジェクトを、386のFront-End Checklistのルールすべてと照らし合わせて監査し、見つかった問題ごとに具体的な修正方法を示します。
404-page
75k見つからないページの画面に役立つリンクがあり、本物の404ステータスを返すかを確認し、迷った訪問者が目的のページを見つけられるようにします。
about-page
75kサイトの運営者が誰かを説明する、分かりやすいAboutページがあるかを確認し、訪問者と検索エンジンからの信頼を高めます。
似ているスキル
angular-developer
280kエージェントがAngularのコードを作成し、プロジェクト構成についてアドバイスできるようにします。新しいプロジェクトの開始、コード部品の作成、パフォーマンスやアクセシビリティの改善に役立ちます。
frontend-a11y
280kエージェントが Web インターフェースを誰にとっても使いやすくするよう支援します。スクリーンリーダーやキーボード操作に対応し、サイトやアプリが適切に動作するようにします。
frontend-patterns
280kエージェントがフロントエンド開発の最新パターンを適用できるようにします。React と Next.js において、パフォーマンスの最適化、状態管理、ベストプラクティスの遵守を行います。