Skip to content

Commit

Permalink
add link for intersection observer api
Browse files Browse the repository at this point in the history
  • Loading branch information
vCiKv authored and joshuaellis committed May 26, 2024
1 parent ace456b commit 1bd8d82
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 1bd8d82

Please sign in to comment.