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 Mar 23, 2023
1 parent 3fddaca commit ca6888b
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 @@ -14,7 +14,7 @@ isNew: true

# 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 ca6888b

Please sign in to comment.