စတိုင် ကာတွန်း FillMode Property
ဥပမာ
<div> ဒြပ်စင်တစ်ခု၏ animationFillMode ပိုင်ဆိုင်မှုကို ပြောင်းလဲခြင်း-
document.getElementById("myDIV").style.animationFillMode = "forwards";
အဓိပ္ပါယ်နှင့် အသုံးပြုမှု
AnimationFillMode ပိုင်ဆိုင်မှုသည် ကာတွန်းကို မဖွင့်ထားသောအခါတွင် ဒြပ်စင်အတွက် မည်သည့်စတိုင်များ သက်ရောက်မည်ကို သတ်မှတ်သည် (၎င်းသည် ပြီးသောအခါ၊ သို့မဟုတ် "နှောင့်နှေးမှု" ရှိသည့်အခါ)။
မူရင်းအားဖြင့်၊ CSS ကာတွန်းများသည် ပထမသော့ဘောင်ကို "မဖွင့်မချင်း" မဖွင့်မချင်း သင်လှုပ်ရှားနေသော ဒြပ်စင်အပေါ် သက်ရောက်မှုရှိမည်မဟုတ်ပါ၊ ထို့နောက် နောက်ဆုံးသော့ဘောင်ဘောင်ပြီးသည်နှင့် ၎င်းကို ထိခိုက်မည်မဟုတ်ပါ။ AnimationFillMode ပိုင်ဆိုင်မှုသည် ဤအပြုအမူကို အစားထိုးနိုင်သည်။
Browser ပံ့ပိုးမှု
ဇယားရှိ နံပါတ်များသည် ပိုင်ဆိုင်မှုကို အပြည့်အဝထောက်ခံသည့် ပထမဆုံးဘရောက်ဆာဗားရှင်းကို သတ်မှတ်ပေးသည်။
Moz ၏နောက်တွင် နံပါတ်များသည် ရှေ့ဆက်တစ်ခုနှင့် လုပ်ဆောင်သည့် ပထမဗားရှင်းကို သတ်မှတ်ပေးသည်။
Property | |||||
---|---|---|---|---|---|
animationFillMode | 43.0 | 79.0 | 16.0 5.0 Moz |
9.0 | 30.0 |
အထားအသို
ကာတွန်းFillMode ပိုင်ဆိုင်မှုကို ပြန်ပေးပါ။
object.style.animationFillMode
animationFillMode ပိုင်ဆိုင်မှုကို သတ်မှတ်ပါ-
object.style.animationFillMode = "none|forwards|backwards|both|initial|inherit"
အိမ်ခြံမြေတန်ဖိုးများ
Value | Description |
---|---|
none | Default value. The animation will not apply any styles to the target before or after it is executing |
forwards | After the animation ends (determined by animation-iteration-count), the animation will apply the property values for the time the animation ended |
backwards | The animation will apply the property values defined in the keyframe that will start the first iteration of the animation, during the period defined by animation-delay. These are either the values of the from keyframe (when animation-direction is "normal" or "alternate") or those of the to keyframe (when animationDirection is "reverse" or "alternate-reverse") |
both | The animation will follow the rules for both forwards and backwards. That is, it will extend the animation properties in both directions |
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 ရည်ညွှန်းချက်- ကာတွန်း-ဖြည့်စွက်-မုဒ် ပိုင်ဆိုင်မှု