javascript - WOW.js 不支持 chrome 68.0.3440.106

标签 javascript html css animation wow.js

我在元素中使用了 wow.js 和 animate.css。我添加了 wow 属性,例如“data-wow-delay="2s"。但是,它在 IE 中有效,但在 Chrome 版本 68.0.3440.106 中无效。 实际上,动画部分有效,但不会发生哇延迟。这是WOW的BUG吗?是否有适用于大多数浏览器的类似 Javascript 库?

最佳答案

我的 App.js 如下所示。

import React, { Component } from 'react';
import 'bootstrap/dist/css/bootstrap.min.css';
import WOW from 'wowjs/dist/wow.js';
import './Animate.css';
import './App.css';
import {
  Route,
  withRouter,
  Switch
} from 'react-router-dom';

class App extends Component {
  componentDidMount(){
    new WOW.WOW().init();
  }
  
      return (
        <Layout className="app-container">
          <AppHeader isAuthenticated={this.state.isAuthenticated}
            currentUser={this.state.currentUser}
            onLogout={this.handleLogout} />

              <Content className="app-content">
              <div className="middle-content">
                    <div className="description col-3 wow bounceIn animated" data-wow-duration="2s" data-wow-delay="1s"><h1>WE OFFER 100%</h1><h3>MONEY BACK GUARANTEE</h3>
                    <p>on all our quality products with hassle - free returns.
                    We believe you will be completely satisfied with your purchase.</p>
                    </div>
                    <div className="app-content-img fadeInRight animated">
                      <img src={require("./3.png")} />
                    </div>
              </div>

它只适用于 IE。

关于javascript - WOW.js 不支持 chrome 68.0.3440.106,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52044147/

相关文章:

html - 页面已满时元素移动?

javascript - 以步骤作为轮播指示器的进度条

javascript - 动态创建 Highcharts 的值

javascript - 如果突出显示一个词并且用户单击连接词,则同时突出显示

javascript - JavaScript Blob 对象什么时候被垃圾回收?

javascript - 在不更改 html 元素的情况下操作 jQuery 对象

javascript - json 和 jsonp 的 $.ajax 和 $.getJSON 无法正确地从第 3 方服务器获得响应

php - 嵌入随机命名的 MP3

html - 根据宽度设置div高度

html - 如何水平对齐元素?