jQuery API | 返回首页目录 | jQuery API 中英文对照版 |
fadeOut(speed, callback) |
fadeOut(speed,callback)
通过不透明度的变化来实现所有匹配元素的淡出效果,并在动画完成后可选地触发一个回调函数。 这个动画只调整元素的不透明度,也就是说所有匹配的元素的高度和宽度不会发生变化。 返回值:jQuery 参数:
示例: $("p").fadeOut("slow"); 示例: $("p").fadeOut("slow",function(){ alert("Animation Done."); }); Fade out all matched elements by adjusting their opacity and firing an optional callback after completion. Only the opacity is adjusted for this animation, meaning that all of the matched elements should already have some form of height and width associated with them. Return value: jQuery
Example: $("p").fadeOut("slow"); Example: $("p").fadeOut("slow",function(){ alert("Animation Done."); }); |