jQuery Effect fadeOut() နည်းလမ်း
ဥပမာ
<p> ဒြပ်စင်များအားလုံးကို ဖယ်ရှားပါ-
$("button").click(function(){
$("p").fadeOut();
});
အဓိပ္ပါယ်နှင့် အသုံးပြုမှု
fadeOut() နည်းလမ်းသည် ရွေးချယ်ထားသော ဒြပ်စင်များအတွက် အလင်းပိတ်မှုကို မြင်နိုင်မှ လျှို့ဝှက်ထားသည် (fading effect) သို့ တဖြည်းဖြည်း ပြောင်းလဲပါသည်။
မှတ်ချက် ။
အကြံပြုချက်- ဒီနည်းလမ်းကို fadeIn() method နဲ့ တွဲသုံးလေ့ရှိပါတယ် ။
အထားအသို
$(selector).fadeOut(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 fadeOut() method is completed
To learn more about callback, visit our jQuery Callback chapter |
သင်ကိုယ်တိုင်စမ်းကြည့်ပါ - ဥပမာများ
သောအကျိုးသက်ရောက်မှု၏အမြန်နှုန်းကိုသတ်မှတ်ရန် အမြန်နှုန်းပါရာမီတာကိုအသုံးပြုနည်း။
ရွေးချယ်ထားသောဒြပ်စင်များအတွက် opacity ကိုတဖြည်းဖြည်းပြောင်းလဲသောအခါ callback parameter ကိုအသုံးပြုခြင်း callback parameter ကိုအသုံးပြုနည်း။