Open WildDagger opened 4 years ago
@WildDagger You should use a case like that:
import WOW from "wow.js";
var wow = new WOW({
boxClass: 'wow',
animateClass: 'animate__animated',
offset: 200,
mobile: true,
live: true
})
wow.init();`
Same problem: Works: (animate 3.7) https://jsfiddle.net/fourroses666/1t2x9hua/1/ Doesn't work: (animate 4.1.1) https://jsfiddle.net/fourroses666/1t2x9hua/3/
Work: (animate 4.1.1) Just add prefix "animate" so yur full class look like this: "wow animateslideInLeft" (two uderscores)
this is correct. var wow = new WOW({ boxClass: 'wow', animateClass: 'animate__animated', offset: 200, mobile: true, live: true }) wow.init();
To install and use it without CDN and without animate__
prefix:
/css/animate.compat.css
/js/wow.js
<link rel="stylesheet" href="/css/animate.compat.css">
<script src="/js/wow.js"></script>
<script>
new WOW().init();
</script>
<img class="wow flash" src="/img/cloud.jpg" alt="Blue sky and clouds">
I try to use wow.js with animate.css, how ever, it not works when I use CDN Link from official site of animate.css. But when I use old version, it works.