स्टाइल एनिमेशन टाइमिंगफंक्शन प्रॉपर्टी
उदाहरण
एक <div> तत्व की एनिमेशनटाइमिंगफंक्शन संपत्ति को बदलना:
document.getElementById("myDIV").style.animationTimingFunction = "linear";
परिभाषा और उपयोग
एनीमेशन टाइमिंग फंक्शन एनीमेशन की गति वक्र को निर्दिष्ट करता है।
गति वक्र उस समय को परिभाषित करता है जो एक एनीमेशन सीएसएस शैलियों के एक सेट से दूसरे में बदलने के लिए उपयोग करता है।
गति वक्र का उपयोग परिवर्तनों को सुचारू रूप से करने के लिए किया जाता है।
ब्राउज़र समर्थन
तालिका में संख्याएं पहले ब्राउज़र संस्करण को निर्दिष्ट करती हैं जो पूरी तरह से संपत्ति का समर्थन करता है।
Moz के बाद आने वाले नंबर पहले संस्करण को निर्दिष्ट करते हैं जो एक उपसर्ग के साथ काम करता है।
Property | |||||
---|---|---|---|---|---|
animationTimingFunction | 43.0 | 79.0 | 16.0 5.0 Moz |
9.0 | 30.0 |
वाक्य - विन्यास
एनीमेशनटाइमिंगफंक्शन संपत्ति लौटाएं:
object.style.animationTimingFunction
एनीमेशनटाइमिंगफंक्शन संपत्ति सेट करें:
object.style.animationTimingFunction = "linear|ease|ease-in|ease-out|cubic-bezier(n, n, n, n)|initial|inherit"
सम्पत्ति की कीमत
Value | Description |
---|---|
linear | The animation has the same speed from start to end |
ease | Default value. The animation has a slow start, then fast, before it ends slowly |
ease-in | The animation has a slow start |
ease-out | The animation has a slow end |
ease-in-out | The animation has both a slow start and a slow end |
cubic-bezier(n, n, n, n) | Define your own values in the cubic-bezier function Possible values are numeric values from 0 to 1 |
initial | Sets this property to its default value. Read about initial |
inherit | Inherits this property from its parent element. Read about inherit |
टेक्निकल डिटेल
डिफ़ॉल्ट मान: | आराम |
---|---|
प्रतिलाभ की मात्रा: | एक स्ट्रिंग, किसी तत्व की एनीमेशन-टाइमिंग-फ़ंक्शन संपत्ति का प्रतिनिधित्व करती है |
सीएसएस संस्करण | CSS3 |
संबंधित पृष्ठ
CSS संदर्भ: एनिमेशन-टाइमिंग-फ़ंक्शन गुण