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
This module is great to handle the element in-view of a browser's viewport.
But I have a problem that you can see below the image.
It's not working exactly when I scrolling the browser.
The element is still not out of the screen has been toggle onNotInView.
"intoViewMargin" is a default value
How can I fix that?
The text was updated successfully, but these errors were encountered:
intoViewMargin: 0% (or even 20%, a positive number)
threshold: 1
Note that threshold was only added earlier this week, so you will need to make sure you update to the latest version of react-inview-monitor.
To understand threshold and intoViewMargin better, please see the MDN docs for IntersectionObserver, which is used under the hood: https://developer.mozilla.org/en-US/docs/Web/API/Intersection_Observer_API
(note that what react-inview-monitor intoViewMargin maps to rootMargin in the IntersectionObserver api)
Although I'm not sure exactly how you are using react-inview-monitor - can you share the exact code for the InViewMonitor used here, with all the props you are sending it?
This module is great to handle the element in-view of a browser's viewport.
But I have a problem that you can see below the image.
It's not working exactly when I scrolling the browser.
The element is still not out of the screen has been toggle onNotInView.
"intoViewMargin" is a default value
How can I fix that?
The text was updated successfully, but these errors were encountered: