anchor-smooth-scroll
यह क्या करती है
यह स्किल जाँचती है कि एक ही पेज के लिंक किस तरह स्क्रॉल होते हैं। यह उन डेवलपर के लिए है जो चाहते हैं कि जंप लिंक गति के प्रति संवेदनशील लोगों के लिए आरामदायक हों।
कब इस्तेमाल करें
- ✓जब आपकी साइट एक ही पेज के लिंक के लिए स्मूद स्क्रॉल इस्तेमाल करती है।
- ✓जब किसी विज़िटर ने अपनी डिवाइस सेटिंग में कम गति (reduced motion) माँगी है।
- ✓जब कीबोर्ड उपयोगकर्ता जंप लिंक का पालन करता है और फ़ोकस लक्ष्य तक नहीं पहुँचता।
Skill का लिंक
https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/anchor-smooth-scroll/SKILL.mdइसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।
कैसे इस्तेमाल करें
सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।
पेस्ट करने के लिए तैयार मैसेज
Claude Code, Codex या Cursor के लिए: प्रोजेक्ट फ़ोल्डर में चलाएँ और skill इंस्टॉल हो जाएगी।
SKILL.md डाउनलोड करें और अपने एजेंट के skills फ़ोल्डर में रखें।
AI से क्या माँगें: उदाहरण
“पक्का करें कि मेरी विषय-सूची के लिंक कम गति पसंद करने वाले लोगों के लिए तुरंत कूद जाएँ।”
हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।
यह कैसे काम करती है
एजेंट स्मूद स्क्रॉल के नियम खोजता है, उन्हें reduced motion सेटिंग तक सीमित करता है, और पक्का करता है कि फ़ोकस जुड़े हुए सेक्शन पर जाता है।
तकनीकी सामग्री (मूल SKILL.md)
लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे GitHub से।
Provide instant anchor scroll option
Smooth scroll animations can trigger vertigo, nausea, and disorientation for users with vestibular disorders—instant navigation is safer and often faster.
Quick Reference
- Disable smooth scroll when prefers-reduced-motion is set
- Use CSS scroll-behavior: smooth with media query check
- Ensure focus moves to anchor target for keyboard users
- Provide instant scroll as default or fallback
Check
Click anchor links (same-page navigation) and verify smooth scrolling is disabled when prefers-reduced-motion is set. Confirm anchor navigation works correctly with keyboard and screen readers.
Fix
Use scroll-behavior: smooth only within a prefers-reduced-motion media query check. Provide instant scrolling as the default or reduced-motion fallback. Ensure focus moves to the anchor target.
Explain
Explain how animated scroll transitions can cause motion sickness and disorientation for users with vestibular disorders, and why instant navigation is often preferable for accessibility.
Code Review
Review the rendered markup and interactive states that affect Provide instant anchor scroll option. 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/anchor-smooth-scroll
अक्सर पूछे जाने वाले सवाल
स्मूद स्क्रॉल समस्या क्यों हो सकता है?
स्किल के अनुसार एनिमेटेड स्क्रॉल वेस्टिबुलर विकार वाले लोगों में चक्कर या भ्रम पैदा कर सकता है।
prefers-reduced-motion क्या है?
यह डिवाइस की एक सेटिंग है जो साइट को बताती है कि विज़िटर कम एनिमेशन चाहता है।
क्या फ़ोकस को हिलना ज़रूरी है?
हाँ। स्किल कहती है कि कीबोर्ड उपयोगकर्ताओं के लिए फ़ोकस एंकर लक्ष्य पर जाना चाहिए।
जानकारी
लेखक का मूल विवरण
Use when reviewing rendered HTML, interactive components, or design-system patterns related to Provide instant anchor scroll option. Check native semantics first, then inspect keyboard behavior, focus flow, accessible names, and screen-reader output where relevant.
लोकप्रियता
- GitHub स्टार
- 75k
- रैंकिंग में स्थान
- #2719
- लाइसेंस
- MIT
- अपडेट की गई
- 31/10/2026
कमेंट
- …
इस repository की और skills
frontendchecklist
75kकमांड-लाइन टूल से फ़्रंटएंड कोड और लाइव पेजों को एक्सेसिबिलिटी, स्पीड, SEO और सिक्योरिटी के 380 से ज़्यादा नियमों से जाँचती है।
frontend-checklist-global
75kफ़्रंटएंड प्रोजेक्ट को Front-End Checklist के सभी 386 नियमों से ऑडिट करती है, और हर मिली समस्या का ठोस समाधान देती है।
404-page
75kजाँचती है कि आपका गुम पेज उपयोगी लिंक देता है और सही 404 स्टेटस लौटाता है, ताकि भटके हुए विज़िटर रास्ता ढूँढ सकें।
about-page
75kजाँचती है कि आपकी साइट पर एक साफ़ About पेज है जो बताता है कि उसे कौन चलाता है, ताकि विज़िटर और सर्च इंजन का भरोसा बढ़े।
मिलती-जुलती skills
angular-developer
280kआपके एजेंट को Angular code बनाने और प्रोजेक्ट स्ट्रक्चर पर सलाह देने में मदद करता है। नए प्रोजेक्ट शुरू करने, code के हिस्से बनाने, या performance और accessibility सुधारने में उपयोगी है।
frontend-a11y
280kआपके एजेंट को web interfaces को सबके लिए accessible बनाने में मदद करता है। यह सुनिश्चित करता है कि websites और apps screen readers और keyboard navigation के साथ अच्छे से काम करें।
frontend-patterns
280kआपके एजेंट को React और Next.js में frontend development के modern patterns लागू करने में मदद करता है। यह performance optimize करता है, state manage करता है और best practices फॉलो करवाता है।