我使用jquery的知识非常有限,通常可以蒙混过关,但我有一个项目,在超大幻灯片序列开始之前,客户希望“预加载”图像淡入和淡出。我在3.2.7js文件中看到了初始化和删除div的代码行,但是我能不能修改一下这行代码,把fadeIn和fadeOut分别设置为1.5秒?
$('#supersized-loader').remove();发布于 2013-01-09 04:34:12
你有没有试着用谷歌搜索?
http://api.jquery.com/fadeIn/
http://api.jquery.com/fadeOut/
// To fade in
$('#supersized-loader').fadeIn();
// To fade out
$('#supersized-loader').fadeOut();
// Chain commands...
$('#supersized-loader').hide().fadeIn().fadeOut().remove();
// ...or possibly
$('#supersized-loader').hide().fadeIn().fadeOut(function(){
// Remove the layer.
$(this).remove();
});https://stackoverflow.com/questions/14223373
复制相似问题