jQuery प्रभाव फ़ेडऑट () विधि
उदाहरण
सभी <p> तत्वों को फीका करें:
$("button").click(function(){
$("p").fadeOut();
});
परिभाषा और उपयोग
फ़ेडऑट () विधि धीरे-धीरे चयनित तत्वों के लिए, दृश्य से छिपे हुए (लुप्त होती प्रभाव) में अस्पष्टता को बदल देती है।
नोट : छिपे हुए तत्व बिल्कुल भी प्रदर्शित नहीं होंगे (अब पृष्ठ के लेआउट को प्रभावित नहीं करते हैं)।
युक्ति: इस विधि का उपयोग अक्सर फ़ेडइन () विधि के साथ किया जाता है ।
वाक्य - विन्यास
$(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 |
इसे स्वयं आज़माएं - उदाहरण
का उपयोग करना लुप्त होती प्रभाव की गति को निर्दिष्ट करने के लिए गति पैरामीटर का उपयोग कैसे करें।
का उपयोग करना चयनित तत्वों के लिए अस्पष्टता को धीरे-धीरे बदलते समय कॉलबैक पैरामीटर का उपयोग कैसे करें।