jQuery fadeIn() နည်းလမ်း
ဥပမာ
<p> ဒြပ်စင်များအားလုံးတွင် အရောင်မှိန်သွားသည်-
$("button").click(function(){
$("p").fadeIn();
});
အဓိပ္ပါယ်နှင့် အသုံးပြုမှု
fadeIn() နည်းလမ်းသည် ရွေးချယ်ထားသော ဒြပ်စင်များအတွက် အလင်းပိတ်ခြင်းကို လျှို့ဝှက်မှ မြင်နိုင်သည် (fading effect) သို့ တဖြည်းဖြည်း ပြောင်းလဲပါသည်။
မှတ်ချက် ။
အကြံပြုချက်- ဤနည်းလမ်းကို fadeOut() နည်းလမ်း နှင့် မကြာခဏ တွဲသုံး ပါသည်။
အထားအသို
$(selector).fadeIn(speed,easing,callback)
Parameter | Description |
---|---|
speed | Optional. Specifies the speed of the fading effect. Default value is 400 milliseconds Possible values:
|
easing | Optional. Specifies the speed of the element in different points of the animation. Default value is "swing" Possible values:
|
callback | Optional. A function to be executed after the fadeIn() method is completed
To learn more about callback, visit our jQuery Callback chapter |
သင်ကိုယ်တိုင်စမ်းကြည့်ပါ - ဥပမာများ
သောအကျိုးသက်ရောက်မှု၏အမြန်နှုန်းကိုသတ်မှတ်ရန် အမြန်နှုန်းကန့်သတ်ဘောင်ကိုအသုံးပြုနည်း။
ကိုအသုံးပြုခြင်းဖြင့် ဒြပ်စင်တစ်ခုအတွင်း မှိန်သွားသောအခါ callback parameter ကိုအသုံးပြုနည်း။