【问题标题】:WOW.js and scrolling divWOW.js 和滚动 div
【发布时间】:2017-02-10 01:28:47
【问题描述】:

我使用wow.js 关注了这个tutorial。我在 div 中使用它,而不是整个页面。我滚动 div,而不是页面。而且这个 Javascript 不起作用。

我需要解决什么问题?

<style>
   body {
      background-color: #78ccf0;
      margin: 0; 
      padding: 0;				
   }
   .header {
      width: 100%;
      height: 214px;
      background-color: #000000;
   }
   .div_body {
      width: 100%;
      height: 450px;
      background-color: #fff;
      overflow: scroll;
      background-image:url('page_fon.jpg');
      font-size: 14pt;
   }
   .footer {
      width: 100%;
      height: 270px;
      background-color: #000000;
   }			
</style>
<div class="div_body">text
  <div class="wow bounceInRight" >animated text</div>
</div>

提前谢谢你。

【问题讨论】:

  • 您的 html 中是否包含 wow.js?
  • 是的,我为 wow.js 创建了这样的链接:
  • 我添加了这个。在 中尝试过,最后在

标签: html css wow.js


【解决方案1】:

要使用animated.css,您必须添加“animated”类。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2014-08-29
    • 2015-07-07
    • 1970-01-01
    • 2014-06-28
    • 1970-01-01
    相关资源
    最近更新 更多