wow.js happens on page load and not on scroll

后端 未结 9 1061
孤独总比滥情好
孤独总比滥情好 2020-12-16 12:32

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

9条回答
  •  萌比男神i
    2020-12-16 12:55

    Late response however this still may help others.

    If WOW.js is still not working after adding the latest version or adding 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.

提交回复
热议问题