စတိုင် ကာတွန်း PlayState Property
ဥပမာ
ကာတွန်းတစ်ခုကို ခေတ္တရပ်နေသည်-
document.getElementById("myDIV").style.animationPlayState = "paused";
အဓိပ္ပါယ်နှင့် အသုံးပြုမှု
animationPlayState ပိုင်ဆိုင်မှုသည် ကာတွန်းကို လုပ်ဆောင်နေသည် သို့မဟုတ် ခေတ္တရပ်ထားခြင်းရှိမရှိကို သတ်မှတ်ပေးပါသည်။
မှတ်ချက်- စက်ဝိုင်းအလယ်တွင် ကာတွန်းတစ်ခုကို ခေတ္တရပ်ရန် ဤပိုင်ဆိုင်မှုကို အသုံးပြုပါ။
Browser ပံ့ပိုးမှု
ဇယားရှိ နံပါတ်များသည် ပိုင်ဆိုင်မှုကို အပြည့်အဝထောက်ခံသည့် ပထမဆုံးဘရောက်ဆာဗားရှင်းကို သတ်မှတ်ပေးသည်။
Webkit၊ Moz သို့မဟုတ် O ဖြင့်လိုက်သောနံပါတ်များသည် ရှေ့ဆက်တွဲတစ်ခုနှင့်အလုပ်လုပ်သော ပထမဆုံးဗားရှင်းကို သတ်မှတ်ပေးသည်။
Property | |||||
---|---|---|---|---|---|
animationPlayState | 43.0 4.0 Webkit |
10.0 | 16.0 5.0 Moz |
9.0 4.0 Webkit |
30.0 15.0 Webkit 12.1 12.0 O |
အထားအသို
animationPlayState ပိုင်ဆိုင်မှုကို ပြန်ပေးပါ-
object.style.animationPlayState
animationPlayState ပိုင်ဆိုင်မှုကို သတ်မှတ်ပါ-
object.style.animationPlayState = "running|paused|initial|inherit"
အိမ်ခြံမြေတန်ဖိုးများ
Value | Description |
---|---|
running | Default value. Specifies that the animation is running |
paused | Specifies that the animation is paused |
initial | Sets this property to its default value. Read about initial |
inherit | Inherits this property from its parent element. Read about inherit |
နည်းပညာဆိုင်ရာအသေးစိတ်
မူလတန်ဖိုး: | ပြေး |
---|---|
ပြန်ပို့တန်ဖိုး- | ဒြပ်စင်တစ်ခု၏ ကာတွန်း-ကစားခြင်း-အခြေအနေပိုင်ဆိုင်မှုကို ကိုယ်စားပြုသည့် စာတန်း |
CSS ဗားရှင်း | CSS3 |
ဆက်စပ်စာမျက်နှာများ
CSS ရည်ညွှန်းချက်- ကာတွန်း-ကစားခြင်း-အခြေအနေပိုင်ဆိုင်မှု