Skip to content

Commit fd03a1f

Browse files
fix(demo): lower IntersectionObserver threshold to prevent feature images from staying hidden
On viewports where height < 15% of the feature grid's total height, the fade-in animation could never trigger, keeping the entire grid at opacity 0. Using threshold 0 fires as soon as any part is visible.
1 parent 4ccb73a commit fd03a1f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

demo/main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ function initScrollAnimations() {
227227
}
228228
});
229229
},
230-
{ threshold: 0.15 }
230+
{ threshold: 0 }
231231
);
232232

233233
document.querySelectorAll('.fade-in').forEach((el) => {

0 commit comments

Comments
 (0)