We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 23aa360 commit 2f3562dCopy full SHA for 2f3562d
src/App.jsx
@@ -15,7 +15,10 @@ function App() {
15
'(prefers-reduced-motion: reduce)'
16
).matches;
17
18
- if (prefersReducedMotion) {
+ if (
19
+ prefersReducedMotion ||
20
+ !('IntersectionObserver' in window)
21
+ ) {
22
elements.forEach((element) => element.classList.add('is-visible'));
23
return undefined;
24
}
@@ -29,7 +32,7 @@ function App() {
29
32
30
33
});
31
34
},
- { threshold: 0.18, rootMargin: '0px 0px -10% 0px' }
35
+ { threshold: 0.01, rootMargin: '0px 0px -8% 0px' }
36
);
37
38
elements.forEach((element) => observer.observe(element));
0 commit comments