စတိုင် ကာတွန်း အိမ်ခြံမြေ
ဥပမာ
အတိုကောက်ပိုင်ဆိုင်မှုကို အသုံးပြု၍ <div> ဒြပ်စင်တစ်ခု၏ ကာတွန်းကို ပြောင်းလဲခြင်း-
document.getElementById("myDIV").style.animation = "mynewmove 4s 2";
အဓိပ္ပါယ်နှင့် အသုံးပြုမှု
ကာတွန်းဂုဏ်သတ္တိသည် ကာတွန်းဂုဏ်သတ္တိခြောက်ခုအတွက် အတိုကောက်ပိုင်ဆိုင်မှုတစ်ခုဖြစ်သည်-
animationName
animationDuration
animationTimingFunction
animationDelay
animationIterationCount
animationDirection
မှတ်ချက် ။
Browser ပံ့ပိုးမှု
ဇယားရှိ နံပါတ်များသည် ပိုင်ဆိုင်မှုကို အပြည့်အဝထောက်ခံသည့် ပထမဆုံးဘရောက်ဆာဗားရှင်းကို သတ်မှတ်ပေးသည်။
Webkit၊ Moz သို့မဟုတ် O ဖြင့်လိုက်သောနံပါတ်များသည် ရှေ့ဆက်တွဲတစ်ခုနှင့်အလုပ်လုပ်သော ပထမဆုံးဗားရှင်းကို သတ်မှတ်ပေးသည်။
Property | |||||
---|---|---|---|---|---|
animation | 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 |
အထားအသို
ကာတွန်း ပိုင်ဆိုင်မှုကို ပြန်ပေးပါ-
object.style.animation
ကာတွန်းဂုဏ်သတ္တိကို သတ်မှတ်ပါ-
object.style.animation = "name duration timingFunction delay iterationCount direction fillMode playState"
အိမ်ခြံမြေတန်ဖိုးများ
Value | Description |
---|---|
animationName | Specifies the name of the keyframe you want to bind to the selector |
animationDuration | Specifies how many seconds or milliseconds an animation takes to complete |
animationTimingFunction | Specifies the speed curve of the animation |
animationDelay | Specifies a delay before the animation will start |
animationIterationCount | Specifies how many times an animation should be played |
animationDirection | Specifies whether or not the animation should play in reverse on alternate cycles |
animationFillMode | Specifies what values are applied by the animation outside the time it is executing |
animationPlayState | Specifies whether the animation is running or paused |
initial | Sets this property to its default value. Read about initial |
inherit | Inherits this property from its parent element. Read about inherit |
နည်းပညာဆိုင်ရာအသေးစိတ်
မူလတန်ဖိုး: | none 0 သက်တောင့်သက်သာ 0 1 normal none ဖြင့်လုပ်ဆောင်ခြင်း။ |
---|---|
ပြန်ပို့တန်ဖိုး- | ဒြပ်စင်တစ်ခု၏ ကာတွန်းဂုဏ်သတ္တိကို ကိုယ်စားပြုသော စာတန်း |
CSS ဗားရှင်း | CSS3 |
ဆက်စပ်စာမျက်နှာများ
CSS ရည်ညွှန်းချက်- ကာတွန်း ပိုင်ဆိုင်မှု