यदि आप Google, 'बैरल रोल करें', तो संपूर्ण पृष्ठ 360 रोटेशन करता है। क्या किसी के पास कोई अनुमान है कि Google यह कैसे कर रहा है? मैंने जावास्क्रिप्ट को अक्षम कर दिया, और यह अभी भी हुआ, तो शायद एक सीएसएस रोटेशन?Google बैरल रोल कैसे करता है?
उत्तर
आप सीएसएस कोड को देखें, तो:
body {
-moz-animation-duration: 4s;
-moz-animation-iteration-count: 1;
-moz-animation-name: roll;
}
जहां रोल @ -webkit-keyframes रोल { \t {-webkit-transform: rotate (0) से कुछ है; } \t {-webkit-transform: rotate (360deg); } } – wave
अप्रिय जावास्क्रिप्ट एनिमेशन मर चुके हैं! सभी गलेदार अप्रिय सीएसएस एनिमेशन! –
यह एक सीएसएस संक्रमण है: मोज़िला के लिए https://developer.mozilla.org/en/CSS/CSS_transitions
-moz-transform: rotate(360deg);
-moz-transition-property: all;
-moz-transition-duration: 5s;
उदाहरण से ऊपर, -o
और -webkit
का उपयोग अन्य ब्राउज़र को लक्ष्य करने के लिए।
एक css3 रोटेशन transformation या तो शरीर या html टैग
यह कस्टम CSS एनिमेशन का उपयोग करता है करने के लिए लागू की तरह लगता है। CSS3 के एनिमेशन के साथ
body {
-moz-animation-name: roll;
-moz-animation-duration: 4s;
-moz-animation-iteration-count: 1;
-o-animation-name: roll;
-o-animation-duration: 4s;
-o-animation-iteration-count: 1;
-webkit-animation-name: roll;
-webkit-animation-duration: 4s;
-webkit-animation-iteration-count: 1;
}
जैसा कि ऊपर कहा, और परिणत: <body>
यहाँ करने के लिए लागू सीएसएस नियम देखें।
वेस्बो ने किसी भी साइट पर प्रभाव लागू करने का एक तरीका दिखाया। आप डेमो और निर्देश here देख सकते हैं।
@-webkit-keyframes roll {
from { -webkit-transform: rotate(0deg) }
to { -webkit-transform: rotate(360deg) }
}
@-moz-keyframes roll {
from { -moz-transform: rotate(0deg) }
to { -moz-transform: rotate(360deg) }
}
@keyframes roll {
from { transform: rotate(0deg) }
to { transform: rotate(360deg) }
}
body {
-moz-animation-name: roll;
-moz-animation-duration: 4s;
-moz-animation-iteration-count: 1;
-webkit-animation-name: roll;
-webkit-animation-duration: 4s;
-webkit-animation-iteration-count: 1;
}
सीएसएस उपसर्ग इस तरह के बेवकूफ विचार थे। –
ऐसा ही कुछ के साथ एक लिंक जोड़ें:
javascript:(function(){var s=document.createElement('style');s.innerHTML='%40-moz-keyframes roll { 100%25 { -moz-transform: rotate(360deg); } } %40-o-keyframes roll { 100%25 { -o-transform: rotate(360deg); } } %40-webkit-keyframes roll { 100%25 { -webkit-transform: rotate(360deg); } } body{ -moz-animation-name: roll; -moz-animation-duration: 4s; -moz-animation-iteration-count: 1; -o-animation-name: roll; -o-animation-duration: 4s; -o-animation-iteration-count: 1; -webkit-animation-name: roll; -webkit-animation-duration: 4s; -webkit-animation-iteration-count: 1; }';document.getElementsByTagName('head')[0].appendChild(s);}());
यह आदमी किसी भी वेबपेज पर चाल करना होगा:
@-moz-keyframes roll {
from { -moz-transform: rotate(0deg) }
to { -moz-transform: rotate(360deg) }
}
body {
-moz-animation-name: roll;
-moz-animation-duration: 4s;
-moz-animation-iteration-count: 1;
}
याद रखें कि यह फ़ायरफ़ॉक्स के लिए है।
अगर आप चाहते हैं अनंत
@-moz-keyframes spin { 100% { -moz-transform: rotate(360deg); } }
@-webkit-keyframes spin { 100% { -webkit-transform: rotate(360deg); } }
@keyframes spin { 100% { -webkit-transform: rotate(360deg); transform:rotate(360deg); } }
body{-webkit-animation: spin 9.9s infinite linear;}
- 1. प्रति अनुरोध रोल प्रदाता कैश करता है?
- 2. Google geocoder कैसे काम करता है?
- 3. Google टॉक कैसे काम करता है?
- 4. Google डॉक्स ऑटोसेव कैसे काम करता है?
- 5. क्या ओरेकल एक त्रुटि पर लेनदेन वापस रोल करता है?
- 6. बैरल/पिनक्यूशन विरूपण के लिए सूत्र
- 7. क्या स्टॉपवॉच है। गेटिमस्टैम्प कभी रोल हो जाता है? या वापस रोल?
- 8. रोल फ़ाइल नाम
- 9. विंडोज़ एज़ूर (वर्कर) रोल
- 10. Azure वर्कर रोल
- 11. Azure वेब रोल
- 12. एसक्यूएलटीई ड्रॉप टेबल रोल
- 13. विंडोज़ एज़ूर रोल उत्तरदायी
- 14. एक एज़ूर वेब रोल
- 15. रोल आधारित प्रमाणीकरण
- 16. रोल ऑब्जेक्ट पैटर्न प्रश्न
- 17. Azure वर्कर रोल
- 18. एएसपीनेट एमवीसी रोल मैनेजर
- 19. Google+ पोस्ट से यूआरएल कैसे पार्स करता है?
- 20. Google Analytics कोड, यह कैसे काम करता है?
- 21. Google मानचित्र मानचित्र 'स्ट्रीट व्यू कर्सर "कैसे करता है"
- 22. Google Analytics इन-पेज Analytics कैसे काम करता है?
- 23. Google जीमेल अपने "ईमेल" संदेशों को कैसे स्टोर करता है?
- 24. एम्बेडेड Google Analytics जावास्क्रिप्ट कैसे काम करता है?
- 25. Google डेस्कटॉप पर मेरे स्थान की गणना कैसे करता है?
- 26. Google डॉक्स स्टोर दस्तावेज़ (बैकएंड पर) कैसे करता है?
- 27. Google हमारे शब्दों की भविष्यवाणी कैसे करता है?
- 28. असीमित Google Analytics कब और कैसे निष्पादित करता है?
- 29. Google खोज कार्य पर फीका टेक्स्ट प्रभाव कैसे करता है?
- 30. Google App Engine जावा का प्रीकंपाइल कैसे करता है?
यह सबसे अधिक संभावना सीएसएस रोटेशन है। –