简体   繁体   English

wow.js的问题

[英]Issues with wow.js

so trying to using wow.js in conjunction with animate.css 因此尝试将wow.js与animate.css结合使用

My animate css is working fine and wow.js has been included and activated but it isn't registering me scrolling down to the element so there for isn't animating. 我的动画css正常工作,并且已包含并激活了wow.js,但它没有注册我向下滚动到该元素,因此没有进行动画处理。

What I've included at the bottom of html before the tag + the animate.css library imported into my main.css 我在html底部包含的代码+导入到main.css中的animate.css库之前包含的内容

<script src="https://cdnjs.cloudflare.com/ajax/libs/wow/1.1.2/wow.min.js"></script>
<script>
  new WOW().init();
</script>

viewport 视口

  <meta name="viewport" content="width=device-width, initial-scale=1">

main.js - should be irrelevant to wow.js main.js-应该与wow.js不相关

$(document).ready(function() {

    console.log('Document ready');

    $('.fa-bars').click(function() {
        $('.nav__links').toggleClass('menu-appear');
    });

    $('.nav .nav__links a').click(function() {
        $('.nav__links').toggleClass('menu-appear');
    });

});

animate has been imported into my main.css file. animate已导入到我的main.css文件中。

Totally stumped why this isn't working. 完全困惑为什么这不起作用。 Any ideas, test site link is as follows. 任何想法,测试站点链接如下。

http://loved-shrew.cloudvent.net http://loved-shrew.cloudvent.net

In your CSS, removing overflow: hidden; 在您的CSS中,消除overflow: hidden; seems to get it working. 似乎能正常工作。 I've only tested by unchecking this property in chrome devtools. 我仅通过在chrome devtools中取消选中此属性来进行测试。

@media (min-width: 1200px)
7690b3e….css:7
html {
    /* overflow: hidden; */
    height: 100%;
}

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM