Commit fd5533b4 authored by Hussain Khalil's avatar Hussain Khalil

Fix scrollTop pt. 2

parent 439de371
......@@ -72,7 +72,7 @@ $(document).scroll(() => {
// Loop for entrance animations
for(var i = 1; i <= numOfBackgrounds; i++) {
if(($("body").scrollTop() / $(window).height()) + 1.3 >= i && !entranceAnimations[i].played) {
if(($(document).scrollTop() / $(window).height()) + 1.3 >= i && !entranceAnimations[i].played) {
entranceAnimations[i].animation();
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment