简体   繁体   English

wowjs 动画 css 不工作 wowjs 不添加动画 class 到 html 元素

[英]wowjs animate css not working wowjs not adding animated class to html element

if you go here site here and check with developer tools you will see this line如果您在此处访问go 并使用开发人员工具进行检查,您将看到这一行

<!--Single portfolio item one-->
<section class="single-items center-block parallax m-0" id="home" style="background: url(innovative/img/single-portfolio1.jpg)">
    <div class="container">
        <div class="row">
            <div class="col-md-12 center-col">
                <div class="area-heading text-center wow fadeInUp" data-wow-delay="0.8s">
                    <h3 class="area-title text-capitalize alt-font text-white mb-2 font-weight-100 ">
                        Nuestro <strong>loren ipsun</strong>loren ipsun</h3>
                    <p class="text-white font-weight-300"> loren ipsun</p>
                    <a href="#creative" class="btn btn-transparent-white btn-rounded btn-rounded btn-large mt-3 scroll">loren ipsun</a>
                </div>
            </div>
        </div>
    </div>

</section>

lacks the * animated * class, tried: manually setting animated css, bootstrap css, and animated js, wow js, did not work.... stripped down all the css and js and just left basic html with animate css and js and wow js, nothing happened缺少 * 动画 * class,尝试过:手动设置动画 css、引导程序 css 和动画 js,哇 js,没有用....剥离所有 css 和 js,只留下基本的 html 和 animate w68090488204 js,什么都没发生

what could be happening?会发生什么? , this template have bootstrap and animate css in one bundle js css file , 这个模板在一个 bundle js css 文件中有 bootstrap 和 animate css

wasted between 2, 4 hours debugging console and found not the culprit of this error浪费了 2、4 个小时调试控制台,发现不是这个错误的罪魁祸首

What i am trying is:我正在尝试的是:

to enable the wow animate js css effect like this site site here此处启用 wow animate js css 效果

if you check with developer tools this last site you will see that will be adding animated class to wow fadein class.. however that is not happening in the first one... and do not know why!如果您查看最后一个站点的开发人员工具,您会看到将添加动画 class 到 wow fadein class.. 但是第一个站点没有发生这种情况......并且不知道为什么!

what could be causing this?是什么原因造成的?

It seems to me that you forgot to initiate the wow.js as told in the documentation , so you just need to add the initiation code to it.在我看来,您忘记了按照文档中的说明启动wow.js ,因此您只需要向其中添加启动代码即可。 And a quick fix would be to add:一个快速的解决方法是添加:

<script type="text/javascript">
    new WOW().init();
</script>

Below <!-- custom script --> line in your code (or anywhere before </body> tag).在代码中的<!-- custom script -->行下方(或</body>标记之前的任何位置)。

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

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