diff --git a/frontend/app/hooks/useInView.ts b/frontend/app/hooks/useInView.ts index a8bd24c..68462cf 100644 --- a/frontend/app/hooks/useInView.ts +++ b/frontend/app/hooks/useInView.ts @@ -21,7 +21,10 @@ function useInView() { observer.disconnect(); } }, - { threshold: 0.15 }, + // In view when the element is 10% into the screen. A threshold would not + // work for tall elements: it is a share of the element, and that share + // may never fit on the screen + { rootMargin: "0px 0px -10% 0px" }, ); observer.observe(element);