Javascript 如何使用jquery控制淡入速度?

Javascript 如何使用jquery控制淡入速度?,javascript,jquery,html,Javascript,Jquery,Html,如何控制淡出动画速度: setTimeout(fade_out, 5000); function fade_out() { $("#LoadingGIF").fadeOut().empty(); } 在淡出功能中设置速度 .fadeOut(1000) 如果要在淡入淡出后清空元素,可以使用callback参数 $LoadingGIF=$("#LoadingGIF"); $LoadingGIF.fadeOut(5000,function(){ $LoadingGIF.empty()

如何控制淡出动画速度:

setTimeout(fade_out, 5000);

function fade_out() {
    $("#LoadingGIF").fadeOut().empty();
}

在淡出功能中设置速度

.fadeOut(1000)

如果要在淡入淡出后清空元素,可以使用callback参数

$LoadingGIF=$("#LoadingGIF");
$LoadingGIF.fadeOut(5000,function(){
  $LoadingGIF.empty();
});

你试过阅读吗?是的,很难理解。我对jquery了解不多,当它以不同的方式完成与我正在做的相同的事情时,它会把我搞砸,我无法理解。我迟早会拿到的,还在学习。谢谢,这正是我想要的。
$LoadingGIF=$("#LoadingGIF");
$LoadingGIF.fadeOut(5000,function(){
  $LoadingGIF.empty();
});