ပုံစံ AnimationIterationCount Property
ဥပမာ
<div> ဒြပ်စင်တစ်ခု၏ animationIterationCount ပိုင်ဆိုင်မှုကို ပြောင်းလဲခြင်း-
document.getElementById("myDIV").style.animationIterationCount = "infinite";
အဓိပ္ပါယ်နှင့် အသုံးပြုမှု
animationIterationCount ပိုင်ဆိုင်မှုသည် ကာတွန်းတစ်ခုအား အကြိမ်မည်မျှကစားသင့်သည် သို့မဟုတ် ပြန်ပေးသည်။
Browser ပံ့ပိုးမှု
ဇယားရှိ နံပါတ်များသည် ပိုင်ဆိုင်မှုကို အပြည့်အဝထောက်ခံသည့် ပထမဆုံးဘရောက်ဆာဗားရှင်းကို သတ်မှတ်ပေးသည်။
Moz ၏နောက်တွင် နံပါတ်များသည် ရှေ့ဆက်တစ်ခုနှင့် လုပ်ဆောင်သည့် ပထမဗားရှင်းကို သတ်မှတ်ပေးသည်။
Property | |||||
---|---|---|---|---|---|
animationIterationCount | 43.0 | 79.0 | 16.0 5.0 Moz |
Not supported | 30.0 |
အထားအသို
animationIterationCount ပိုင်ဆိုင်မှုကို ပြန်ပေးပါ။
object.style.animationIterationCount
animationIterationCount ပိုင်ဆိုင်မှုကို သတ်မှတ်ပါ-
object.style.animationIterationCount = "number|infinite|initial|inherit"
အိမ်ခြံမြေတန်ဖိုးများ
Value | Description |
---|---|
number | A number that defines how many times an animation should be played. Default value is 1 |
infinite | Specifies that the animation should be played infinite times (for ever) |
initial | Sets this property to its default value. Read about initial |
inherit | Inherits this property from its parent element. Read about inherit |
နည်းပညာဆိုင်ရာအသေးစိတ်
မူလတန်ဖိုး: | ၁ |
---|---|
ပြန်ပို့တန်ဖိုး- | ဒြပ်စင်တစ်ခု၏ animation-iteration-count property ကိုကိုယ်စားပြုသော စာတန်း |
CSS ဗားရှင်း | CSS3 |
ဆက်စပ်စာမျက်နှာများ
CSS ရည်ညွှန်းချက်- ကာတွန်း-ပြန်ဆို-ရေတွက်မှု ပိုင်ဆိုင်မှု