1. Installation
npm install wowjs --save-dev
2. Introduced in main
animate.css will be installed automatically
Because wow.js is based on animate.css
Introduce animate.css in main.js
import "animate.css"
3. Page usage
有两种引入使用方式:
1. import {WOW} from 'wowjs' mounted() { new WOW().init() }
2.import WOW from 'wowjs' mounted() { new WOW.WOW().init() }
<div class="left_list wow animate__animated animate__bounceInLeft">
,,,,,,,,,,,,,,
</div>