首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Jquery预加载器& wow.js

Jquery预加载器& wow.js
EN

Stack Overflow用户
提问于 2014-11-30 23:24:06
回答 1查看 1.2K关注 0票数 0

我正在使用wow.js插件& jquery预加载教程

预加载器工作正常,但是当它预加载页面上的元素时,wow.js动画已经结束。我想编辑我的代码,所以在所有的东西都预先加载后,动画就会启动。

我读过这个问答,但是它对我的代码无效。

我的代码:

代码语言:javascript
复制
// 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");          
})

如果有人能帮我,那就太好了,谢谢!

EN

回答 1

Stack Overflow用户

发布于 2015-06-03 10:46:20

使用下面的代码实现wow js与您的自定义预加载代码。

代码语言:javascript
复制
// 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);          
})
票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/27219508

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档