😎 🖥️ React hook to monitor an element enters or leaves the viewport (or another element).
scrollDirection
when re-observe (#495)rootMargin
optionobserve
API not working at the first time (#493) (#495)observe
API for handling conditional component (#493)rootMargin
optionupdatePosition
for correcting the behavior of scrollDirection
when jumping to a page section. (See API)