Custom React Hooks: useIntersectionObserver()
Intersection Observer API lets programmers check if a DOM element is currently visible (i.e. intersecting) on the screen.
It can be used to:
display floating menu
lazy load images
perform animations
detect if ads are displayed
implement infinite sc...
kkalamarski.me2 min read