From 1bd8d82f2ae2655ce6884f369bc02317f3393bf9 Mon Sep 17 00:00:00 2001 From: Kevin <54258753+vCiKv@users.noreply.github.com> Date: Thu, 23 Mar 2023 07:17:49 +0000 Subject: [PATCH] add link for intersection observer api --- docs/app/routes/docs.utilities.use-in-view.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/app/routes/docs.utilities.use-in-view.mdx b/docs/app/routes/docs.utilities.use-in-view.mdx index 64082b313a..65deb45063 100644 --- a/docs/app/routes/docs.utilities.use-in-view.mdx +++ b/docs/app/routes/docs.utilities.use-in-view.mdx @@ -18,7 +18,7 @@ export const meta = formatFrontmatterToRemixMeta(frontmatter) # useInView -A helpful utility hook tracking the visibility of an element in the viewport. Using the native `IntersectionObserver`, +A helpful utility hook tracking the visibility of an element in the viewport. Using the native [`IntersectionObserver`](https://developer.mozilla.org/en-US/docs/Web/API/Intersection_Observer_API), you can respond either to a `boolean` signifying that the element has "intersected" or instead pass it a function returning `SpringValues` to animate the element upon `intersection`.