You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If using this on elements inside a scrollable div, you need to pass the root prop in order for the offset to work correctly. Otherwise offset is "ignored" and elements are only "visible" when they are actually visibile.
We just need a new root prop of type Element that can be passed optionally to the IntersectionObserver constructor
The text was updated successfully, but these errors were encountered:
If using this on elements inside a scrollable div, you need to pass the root prop in order for the offset to work correctly. Otherwise offset is "ignored" and elements are only "visible" when they are actually visibile.
We just need a new
root
prop of type Element that can be passed optionally to the IntersectionObserver constructorThe text was updated successfully, but these errors were encountered: