view-transitions
यह क्या करती है
यह स्किल ब्राउज़र के View Transitions API से पेज की अवस्थाओं और स्क्रीन के बीच सहज एनिमेशन जोड़ती है। यह सिंगल-पेज या मल्टी-पेज साइट बनाने वाले डेवलपर्स के लिए है।
कब इस्तेमाल करें
- ✓जब पेज बदलने पर झटका लगे और यूज़र भूल जाएँ कि वे कहाँ हैं।
- ✓जब कोई इमेज विवरण दृश्य में सहजता से फैलनी चाहिए।
- ✓जब आप देख रहे हों कि साइट कोई एनिमेशन लाइब्रेरी इस्तेमाल करती है जिसे ब्राउज़र अब खुद संभाल सकता है।
Skill का लिंक
https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/view-transitions/SKILL.mdइसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।
कैसे इस्तेमाल करें
सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।
पेस्ट करने के लिए तैयार मैसेज
Claude Code, Codex या Cursor के लिए: प्रोजेक्ट फ़ोल्डर में चलाएँ और skill इंस्टॉल हो जाएगी।
SKILL.md डाउनलोड करें और अपने एजेंट के skills फ़ोल्डर में रखें।
AI से क्या माँगें: उदाहरण
“मेरे ऐप में पेज बदलना झटके वाला लगता है। क्या आप बड़ी एनिमेशन लाइब्रेरी जोड़े बिना सहज ट्रांज़िशन जोड़ सकते हैं?”
हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।
यह कैसे काम करती है
एजेंट पेज बदलने को ब्राउज़र की ट्रांज़िशन कॉल में लपेटता है और उन एलिमेंट के नाम देता है जिन्हें अपने-आप एनिमेट होना चाहिए। ब्राउज़र पहले और बाद के स्नैपशॉट लेता है, फिर उनके बीच एनिमेट करता है।
तकनीकी सामग्री (मूल SKILL.md)
लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे GitHub से।
Use the View Transitions API for smooth page and component transitions
Jarring instant page changes are one of the most noticeable perceived- performance problems in web applications. Smooth transitions help users maintain context during navigation — they understand where they came from and where they are going. Previously, achieving this required complex JavaScript animation libraries; the View Transitions API delivers it natively at a fraction of the code cost.
Quick Reference
- Wrap DOM mutations in document.startViewTransition() for same-page transitions
- Add view-transition-name to elements that should animate individually (not the whole page)
- Use @starting-style and ::view-transition-* pseudo-elements to customise animations
- Enable cross-document transitions in CSS with @view-transition { navigation: auto }
Check
Check whether the site uses the View Transitions API or a JavaScript animation library for page and component transitions.
Fix
Implement view transitions using document.startViewTransition() for SPA route changes or @view-transition for MPA cross-document navigation.
Explain
Explain how the View Transitions API captures before/after snapshots and animates between them, and how view-transition-name enables shared-element transitions.
Code Review
Review transition implementation for missing prefers-reduced-motion guards, duplicate view-transition-name values (must be unique per snapshot), and transitions that may cause layout thrash in the old/new state.
For full implementation details, code examples, and framework-specific guidance,
see references/rule.md.
Rule page: https://frontendchecklist.io/rules/css/view-transitions
अक्सर पूछे जाने वाले सवाल
क्या इसके लिए JavaScript लाइब्रेरी चाहिए?
स्किल कहती है कि View Transitions API ब्राउज़र में बना है, इसलिए एनिमेशन लाइब्रेरी को चाहिए वाला बहुत-सा कोड इसमें नहीं चाहिए।
क्या ट्रांज़िशन को reduced motion सेटिंग का सम्मान करना चाहिए?
हाँ। स्किल prefers-reduced-motion गार्ड की कमी को ठीक करने वाली समस्या बताती है।
view-transition-name किसलिए है?
यह किसी एक एलिमेंट को अपने-आप एनिमेट करने देता है, जैसे दो पेजों के बीच साझा इमेज।
जानकारी
लेखक का मूल विवरण
Use when adding page transition animations, image expand/contract effects, shared-element transitions, or improving navigation UX in a single-page or multi-page application.
लोकप्रियता
- GitHub स्टार
- 75k
- रैंकिंग में स्थान
- #3077
- लाइसेंस
- 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 फॉलो करवाता है।