fix: proper root margin values for intersection observer

This commit is contained in:
iCrawl 2022-10-08 14:31:26 +02:00
parent 63939f8219
commit 7b76b0b7e7
No known key found for this signature in database
GPG key ID: 1AB888B16355FBB2

View file

@ -27,7 +27,7 @@ const { headings } = Astro.props;
},
{
root: null,
rootMargin: '0px 0px -300px 0px',
rootMargin: '0px 0px -450px 0px',
threshold: 1.0,
},
);