Skip to content

Commit 6142920

Browse files
committed
change minimun element bottom in reveal function
1 parent d361d66 commit 6142920

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ function reveal() {
77
if (
88
elementTop <
99
windowHeight - element.getBoundingClientRect().height + 150 &&
10-
elementBottom >= 140
10+
elementBottom >= 130
1111
) {
1212
element.classList.add("active");
1313
} else {

0 commit comments

Comments
 (0)