Skip to content

Commit 6c4fb2d

Browse files
committed
Update index.html
1 parent 02d6d0f commit 6c4fb2d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -345,7 +345,7 @@ <h2 class="color-1 weight-title-h font-title section__title center">A codeful of
345345
//const isVisible = (elemTop >= 0) && (elemBottom <= window.innerHeight);
346346

347347
// Partially visible elements return true:
348-
let isVisible = (elemTop - (el.clientHeight / 2)) < window.innerHeight;
348+
let isVisible = (elemTop + (el.clientHeight / 2) + 20) < window.innerHeight;
349349

350350
return isVisible;
351351

0 commit comments

Comments
 (0)