CSS एनिमेशन-दिशा संपत्ति
उदाहरण
एनिमेशन को पहले आगे, फिर पीछे की ओर चलाएं:
div {
animation-direction: alternate;
}
नीचे और अधिक "इसे स्वयं आज़माएं" उदाहरण।
परिभाषा और उपयोग
संपत्ति परिभाषित करती है कि animation-direction
क्या एनीमेशन को आगे, पीछे या वैकल्पिक चक्रों में चलाया जाना चाहिए।
डिफ़ॉल्ट मान: | साधारण |
---|---|
विरासत में मिला: | नहीं |
एनिमेटेबल: | नहीं। एनिमेटेबल के बारे में पढ़ें |
संस्करण: | CSS3 |
जावास्क्रिप्ट सिंटैक्स: | ऑब्जेक्ट .style.animationDirection = "रिवर्स" |
ब्राउज़र समर्थन
तालिका में संख्याएं पहले ब्राउज़र संस्करण को निर्दिष्ट करती हैं जो पूरी तरह से संपत्ति का समर्थन करता है।
-वेबकिट-, -मोज़-, या -ओ- के बाद नंबर एक उपसर्ग के साथ काम करने वाले पहले संस्करण को निर्दिष्ट करें।
Property | |||||
---|---|---|---|---|---|
animation-direction | 43.0 4.0 -webkit- |
10.0 | 16.0 5.0 -moz- |
9.0 4.0 -webkit- |
30.0 15.0 -webkit- 12.0 -o- |
सीएसएस सिंटेक्स
animation-direction: normal|reverse|alternate|alternate-reverse|initial|inherit;
सम्पत्ति की कीमत
Value | Description | Play it |
---|---|---|
normal | Default value. The animation is played as normal (forwards) | |
reverse | The animation is played in reverse direction (backwards) | |
alternate | The animation is played forwards first, then backwards | |
alternate-reverse | The animation is played backwards first, then forwards | |
initial | Sets this property to its default value. Read about initial | |
inherit | Inherits this property from its parent element. Read about inherit |
और ज्यादा उदाहरण
उदाहरण
एनिमेशन को पहले पीछे की ओर चलाएं, फिर आगे की ओर:
div {
animation-direction: alternate-reverse;
}
उदाहरण
एनीमेशन को पीछे की ओर चलाएं:
div {
animation-direction: reverse;
}
संबंधित पृष्ठ
सीएसएस ट्यूटोरियल: सीएसएस एनिमेशन
एचटीएमएल डोम संदर्भ: एनीमेशनदिशा संपत्ति