我不想在淡出完成时调用动画函数。不是在它淡出的时候。我认为fadeOut中的“进度”功能是正确的。有人可以帮助我,我不知道如何在我的代码上应用“进度”功能。
$(".intro").animate({height:'100%', width:'100%'}, 2000, function(){
$(this).append("<div class='text'>Welcome to Progressbar_v1</div>"); $(".text").css({"height":"23px","width":"auto","position":"absolute","top":"0","left":"0","bottom":"0","right":"0","margin":"auto"}).animate({fontSize:'3em'},"slow");
$(".text").fadeOut(4000);
});
$(".intro").animate({height:'30px', width:'500px'}, 2000);
最佳答案
使用.fadeOut()
回调
$(".intro").animate({height:'100%', width:'100%'}, 2000, function(){
$(this).append("<div class='text'>Welcome to Progressbar_v1</div>"); $(".text").css({"height":"23px","width":"auto","position":"absolute","top":"0","left":"0","bottom":"0","right":"0","margin":"auto"}).animate({fontSize:'3em'},"slow");
$(".text").fadeOut(4000, function() {
$(".intro").animate({height:'30px', width:'500px'}, 2000);
});
});
关于javascript - 淡出后的进度,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24163586/