加载时淡入图像
Fade-in images on load
我有这个:
<div id="container" class="loading">
<header id="gallery-header">
<div id="top-bar-gallery">
<a href="../index.html">HOME</a>
</div>
</header>
<div id="gallery-main" role="main" >
<div id="image" class="loading">
<a><img src="roma/roma2.jpg" alt"" /></a>
<a><img src="../css/images/gallery-loaderx.gif" alt="" /></a>
</div>
</div>
</div> <!--! end of #container -->
但是图库加载程序不显示?我似乎想不通。
非常感谢您的帮助。
你在用JS吗?或者你需要一些解决方案来在页面加载后淡入图像?如果你只需要图片/内容来fadeIn,你需要包括Jquery,然后做这样的事情:
$(document).ready(function() {
//hides the images
$("#images").hide();
// starts a time counter so you can fade the images later on (when page loads)
var imageFader= setTimeout(function(){
$("#images").fadeIn();
},2000); // 2 seconds (adjust if needed);
});
您也可以将此方法应用于触发/激活功能
希望这能有所帮助。
相关文章:
- 淡入背景图像淡入该分区内的内容
- jQuery图像淡入淡出不起作用
- 悬停在文本上,图像淡入淡出&出来
- 幻灯片中的图像淡入淡出
- 将鼠标悬停在文本上,图像淡入
- 我将如何使背景图像淡入
- CSS3 图像淡入
- 现有 JavaScript 照片库的图像淡入淡出效果
- CSS 过渡背景图像淡入,但不动画大小
- 幻灯片 具有不透明度的阵列图像(淡入淡出)
- 使图像淡入
- 如何使用 CSS3 设置 ul 背景图像淡入
- 预览图像淡入
- 动画 HTML 背景图像淡入淡出
- CSS jQuery - 展示图像(淡入淡出)
- 网页加载完成后图像淡入
- 可以't使背景图像淡入
- 文本图像淡入淡出和淡入淡出问题:以连续方式显示文本淡入淡出
- 下一个图像未淡入.上一个图像淡入,下一个仅出现
- 当用户向下滚动到该分区时,背景图像淡入淡出