CSS ကာတွန်း-လမ်းညွှန် ပိုင်ဆိုင်မှု
ဥပမာ
အန်နီမေးရှင်းကို ရှေ့သို့ ရှေ့တိုးပြီးနောက် နောက်ပြန်ဖွင့်ပါ-
div {
animation-direction: alternate;
}
အောက်တွင် နောက်ထပ် "စမ်းသုံးကြည့်ပါ" ဥပမာများ။
အဓိပ္ပါယ်နှင့် အသုံးပြုမှု
အန် animation-direction
နီမေးရှင်းကို ရှေ့၊ နောက်၊ သို့မဟုတ် လှည့်ပတ်သည့် စက်ဝိုင်းများတွင် ကစားသင့်သည်ဆိုသည်ကို ပိုင်ဆိုင်မှုက သတ်မှတ်သည်။
မူလတန်ဖိုး: | ပုံမှန် |
---|---|
အမွေဆက်ခံသည်- | မဟုတ်ဘူး |
သက်ဝင်လှုပ်ရှားနိုင်သော | မဟုတ်ဘူး ကာတွန်း အကြောင်းဖတ်ပါ။ |
ဗားရှင်း- | CSS3 |
JavaScript syntax- | အရာဝတ္ထု .style.animationDirection="ပြောင်းပြန်" |
Browser ပံ့ပိုးမှု
ဇယားရှိ နံပါတ်များသည် ပိုင်ဆိုင်မှုကို အပြည့်အဝထောက်ခံသည့် ပထမဆုံးဘရောက်ဆာဗားရှင်းကို သတ်မှတ်ပေးသည်။
-webkit-၊ -moz- သို့မဟုတ် -o- ဖြင့်လိုက်သောနံပါတ်များသည် ရှေ့ဆက်တွဲတစ်ခုနှင့်အလုပ်လုပ်သော ပထမဆုံးဗားရှင်းကို သတ်မှတ်ပေးသည်။
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- |
CSS Syntax
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;
}
ဆက်စပ်စာမျက်နှာများ
CSS သင်ခန်းစာ- CSS Animations
HTML DOM ရည်ညွှန်းချက်- animationDirection ပိုင်ဆိုင်မှု