我正在使用wow.js插件& jquery预加载教程。
预加载器工作正常,但是当它预加载页面上的元素时,wow.js动画已经结束。我想编辑我的代码,所以在所有的东西都预先加载后,动画就会启动。
我读过这个问答,但是它对我的代码无效。
我的代码:
// makes sure the whole site is loaded
jQuery(window).load(function() {
// will first fade out the loading animation
jQuery("#status").fadeOut();
// will fade out the whole DIV that covers the website.
jQuery("#preloader").delay(500).fadeOut("slow");
})如果有人能帮我,那就太好了,谢谢!
发布于 2015-06-03 10:46:20
使用下面的代码实现wow js与您的自定义预加载代码。
// makes sure the whole site is loaded
jQuery(window).load(function() {
// will first fade out the loading animation
jQuery("#status").fadeOut();
// will fade out the whole DIV that covers the website.
jQuery("#preloader").delay(500).fadeOut("slow");
// Here will be the WoW Js implementation.
setTimeout(function(){new WOW().init();}, 1000);
})https://stackoverflow.com/questions/27219508
复制相似问题