xxxxxxxxxx
1
<p>
2
When the div appears, "WOW" should be printed in the console but nothing happens. sounds like the callback is not fired.
3
</p>
4
<div class="wow bounceInLeft">
5
'My content'
6
</div>
xxxxxxxxxx
1
p {
2
margin: 20px;
3
}
4
.wow {
5
height: 100px;
6
border: 2px solid black;
7
margin: 20px 100px;
8
display: flex;
9
justify-content: center;
10
align-items: center;
11
}
xxxxxxxxxx
1
var wow = new WOW({
2
callback: function(box) {
3
console.log('WOW');
4
},
5
})
6
wow.init();
Console errors: 0