Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/cmake/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript 加载时淡入图像_Javascript_Jquery_Css - Fatal编程技术网

Javascript 加载时淡入图像

Javascript 加载时淡入图像,javascript,jquery,css,Javascript,Jquery,Css,我有这个: 但gallery loader不显示?我似乎无法解决这个问题 非常感谢您的帮助。您是否正在使用JS?或者你是否需要一些解决方案来在页面加载后淡入图像? 如果您只需要fadeIn中的图像/内容,则需要包括Jquery,然后执行以下操作: $(document).ready(function() { //hides the images $("#images").hide(); // starts a time counter so you ca

我有这个:



但gallery loader不显示?我似乎无法解决这个问题


非常感谢您的帮助。

您是否正在使用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/JavaScript。有些插件是style.css、modernizr-1.7.min.js、jQuery.js、jQuery-ui.min.js、nexHelpers.js、jQuery.nexGallery.js、jQuery.scrollTo-min.js是的,但是你能显示这个页面上调用动画的JavaScript或jQuery吗?我太迷路了,有人我可以PM/邮件我的网站,这样我就可以显示我的小问题现场?
</div> <!--! end of #container -->
$(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);


});