Skip to content

Commit

Permalink
docs: added link for intersection observer api (#2126)
Browse files Browse the repository at this point in the history
  • Loading branch information
vCiKv authored May 26, 2024
1 parent ace456b commit 73cd1aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/app/routes/docs.utilities.use-in-view.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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`.

Expand Down

0 comments on commit 73cd1aa

Please sign in to comment.