I\'m using wow.js, and it works fine, except the animations all happen immediately after the page load, and not when they are scrolled to. I followed the docs, but can\'t fi
I had a similar problem today, because I was using a fixed navigation bar width a height of 160px the content was loaded before I could see it.
I solved it by adding an offset in the WOW initialization :
new WOW({offset: 160 }).init()
Hope it could help.
For bouncing on the answer proposed by DesignofKA, I had the same issue due to fixed height property in a wrapping div.
I simply init wow during window.onload event to solve the wow problem.
My code is:
$(window).load(function() {
var wow = new WOW({
boxClass: 'wow',
animateClass: 'animated',
offset: 0,
mobile: true,
live: true
});
wow.init();
});
Late response however this still may help others.
If WOW.js is still not working after adding the latest version or adding <!DOCTYPE html>
the problem may be due to a conflict in the scroll (or more specifically the viewport).
In my case, the problem was caused within my CSS when using the following:
html, body {height:100%; width:100%; overflow:hidden}
By removing the height and width properly, I was able to solve the problem as Wow.js was then able to notice when the element came into the viewport and change the elements visibility.