jQuery ကျူတိုရီရယ်

jQuery ပင်မစာမျက်နှာ jQuery မိတ်ဆက် jQuery စတင်လိုက်ပါ။ jQuery Syntax jQuery ရွေးချယ်မှုများ jQuery ပွဲများ

jQuery အကျိုးသက်ရောက်မှုများ

jQuery ဖျောက်/ပြပါ။ jQuery အရောင်မှိန်ခြင်း။ jQuery Slide jQuery Animate jQuery stop() jQuery ပြန်ခေါ်ပါ။ jQuery ချိတ်ဆက်ခြင်း။

jQuery HTML

jQuery ကိုရယူပါ။ jQuery သတ်မှတ် jQuery ကိုထည့်ပါ။ jQuery ကိုဖယ်ရှားပါ။ jQuery CSS အတန်းများ jQuery css() jQuery အတိုင်းအတာများ

jQuery လမ်းလျှောက်ခြင်း။

jQuery လမ်းလျှောက်ခြင်း။ jQuery ဘိုးဘေးများ jQuery မျိုးဆက်များ jQuery မောင်နှမများ jQuery စစ်ထုတ်ခြင်း။

jQuery AJAX

jQuery AJAX နိဒါန်း jQuery Load jQuery Get/Post

jQuery ထွေ

jQuery noConflict() jQuery စစ်ထုတ်မှုများ

jQuery ဥပမာများ

jQuery ဥပမာများ jQuery စာမေးပွဲ jQuery လေ့ကျင့်ခန်းများ jQuery လက်မှတ်

jQuery ကိုးကားချက်များ

jQuery ခြုံငုံသုံးသပ်ချက် jQuery ရွေးချယ်မှုများ jQuery ပွဲများ jQuery အကျိုးသက်ရောက်မှုများ jQuery HTML/CSS jQuery လမ်းလျှောက်ခြင်း။ jQuery AJAX jQuery ထွေ jQuery ဂုဏ်သတ္တိများ

jQuery Effect fadeTo() နည်းလမ်း

❮ jQuery Effect နည်းလမ်းများ

ဥပမာ

<p> ဒြပ်စင်အားလုံး၏ ပွင့်လင်းမြင်သာမှုကို တဖြည်းဖြည်း ပြောင်းလဲပါ-

$("button").click(function(){
  $("p").fadeTo(1000, 0.4);
});

အဓိပ္ပါယ်နှင့် အသုံးပြုမှု

fadeTo() နည်းလမ်းသည် ရွေးချယ်ထားသော ဒြပ်စင်များအတွက် အလင်းပိတ်မှုကို သတ်မှတ်ထားသော အလင်းပိတ်မှု (fading effect) သို့ တဖြည်းဖြည်း ပြောင်းလဲပါသည်။


အထားအသို

$(selector).fadeTo(speed,opacity,easing,callback)

Parameter Description
speed Required. Specifies the speed of the fading effect.

Possible values:

  • milliseconds
  • "slow"
  • "fast"
opacity Required. Specifies the opacity to fade to. Must be a number between 0.00 and 1.00
easing Optional. Specifies the speed of the element in different points of the animation. Default value is "swing"

Possible values:

  • "swing" - moves slower at the beginning/end, but faster in the middle
  • "linear" - moves in a constant speed
Tip: More easing functions are available in external plugins
callback Optional. A function to be executed after the fadeTo() method is completed

To learn more about callback, visit our jQuery Callback chapter


သင်ကိုယ်တိုင်စမ်းကြည့်ပါ - ဥပမာများ


ကိုအသုံးပြုခြင်းဖြင့် ဒြပ်စင်တစ်ခုအတွင်း မှိန်သွားသောအခါ callback parameter ကိုအသုံးပြုနည်း။


❮ jQuery Effect နည်းလမ်းများ