Browse code

Fix animation else if condition

Benjamin Roth authored on15/03/2021 14:10:44
Showing1 changed files
... ...
@@ -9,12 +9,16 @@
9 9
       rect.right-rect.width/2 <= (window.innerWidth || document.documentElement.clientWidth))
10 10
     {
11 11
       return 1;
12
-    } else if (
12
+    } /*else if (
13 13
       rect.left+rect.width/2 >= 0 &&
14 14
       rect.bottom <= (window.innerHeight || document.documentElement.clientHeight) &&
15 15
       rect.right-rect.width/2 <= (window.innerWidth || document.documentElement.clientWidth))
16 16
     {
17 17
       return 2;
18
+    }*/ else if (
19
+      rect.bottom < (window.innerHeight || document.documentElement.clientHeight))
20
+    {
21
+      return 2;
18 22
     }
19 23
     return false;
20 24
   }