jQuery slideDown() နည်းလမ်း
ဥပမာ
လျှို့ဝှက်ထားသော <p> ဒြပ်စင်များအားလုံးကို ပြရန်-
$("button").click(function(){
$("p").slideDown();
});
အဓိပ္ပါယ်နှင့် အသုံးပြုမှု
slideDown() နည်းလမ်းသည် ရွေးချယ်ထားသော အစိတ်အပိုင်းများကို slide-down (ပြသသည်)။
မှတ်ချက်- slideDown() သည် jQuery နည်းလမ်းများဖြင့် ဝှက်ထားသော ဒြပ်စင်များပေါ်တွင် အလုပ်လုပ်ပြီး CSS တွင် မရှိပါ။
အကြံပြုချက်- ဒြပ်စင်များကို slide-up (ဖျောက်ရန်) slideUp() method ကိုကြည့်ပါ။
အထားအသို
$(selector).slideDown(speed,easing,callback)
Parameter | Description |
---|---|
speed | Optional. Specifies the speed of the slide 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 slideDown() method is completed
To learn more about callback, visit our jQuery Callback chapter |
သင်ကိုယ်တိုင်စမ်းကြည့်ပါ - ဥပမာများ
အသုံးပြုခြင်း စလိုက်အကျိုးသက်ရောက်မှု၏ အမြန်နှုန်းကို သတ်မှတ်ရန် အမြန်နှုန်း ကန့်သတ်ဘောင်ကို အသုံးပြုနည်း။
ကိုအသုံးပြု၍ ရွေးချယ်ထားသောဒြပ်စင်များကို အပေါ်နှင့်အောက် လျှောချသည့်အခါ callback parameter ကိုအသုံးပြုနည်း။