gpt4 book ai didi

javascript - WOW.js 不支持 chrome 68.0.3440.106

转载 作者:行者123 更新时间:2023-11-28 01:12:02 25 4
gpt4 key购买 nike

我在元素中使用了 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/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com