ပုံစံ ကာတွန်း TimingFunction ပိုင်ဆိုင်မှု
ဥပမာ
<div> ဒြပ်စင်တစ်ခု၏ animationTimingFunction ပိုင်ဆိုင်မှုကို ပြောင်းလဲခြင်း-
document.getElementById("myDIV").style.animationTimingFunction = "linear";
အဓိပ္ပါယ်နှင့် အသုံးပြုမှု
AnimationTimingFunction သည် ကာတွန်း၏ အမြန်နှုန်းမျဉ်းကွေးကို သတ်မှတ်ပေးသည်။
အမြန်နှုန်းမျဉ်းကွေးသည် CSS စတိုင်များကို အစုံလိုက်မှ နောက်တစ်ခုသို့ ပြောင်းလဲရန် ကာတွန်းတစ်ခုအသုံးပြုသည့် TIME ကို သတ်မှတ်သည်။
အပြောင်းအလဲများကို ချောမွေ့စွာပြုလုပ်ရန် speed curve ကိုအသုံးပြုသည်။
Browser ပံ့ပိုးမှု
ဇယားရှိ နံပါတ်များသည် ပိုင်ဆိုင်မှုကို အပြည့်အဝထောက်ခံသည့် ပထမဆုံးဘရောက်ဆာဗားရှင်းကို သတ်မှတ်ပေးသည်။
Moz ၏နောက်တွင် နံပါတ်များသည် ရှေ့ဆက်တစ်ခုနှင့် လုပ်ဆောင်သည့် ပထမဗားရှင်းကို သတ်မှတ်ပေးသည်။
Property | |||||
---|---|---|---|---|---|
animationTimingFunction | 43.0 | 79.0 | 16.0 5.0 Moz |
9.0 | 30.0 |
အထားအသို
AnimationTimingFunction ပိုင်ဆိုင်မှုကို ပြန်ပေးပါ-
object.style.animationTimingFunction
AnimationTimingFunction ပိုင်ဆိုင်မှုကို သတ်မှတ်ပါ-
object.style.animationTimingFunction = "linear|ease|ease-in|ease-out|cubic-bezier(n, n, n, n)|initial|inherit"
အိမ်ခြံမြေတန်ဖိုးများ
Value | Description |
---|---|
linear | The animation has the same speed from start to end |
ease | Default value. The animation has a slow start, then fast, before it ends slowly |
ease-in | The animation has a slow start |
ease-out | The animation has a slow end |
ease-in-out | The animation has both a slow start and a slow end |
cubic-bezier(n, n, n, n) | Define your own values in the cubic-bezier function Possible values are numeric values from 0 to 1 |
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 ရည်ညွှန်းချက်- ကာတွန်း-အချိန်-လုပ်ဆောင်ချက်-ပိုင်ဆိုင်မှု