How to check an element is in viewport using Intersection Observer API

In the last article we have used a custom function to find an element is in viewport or not. But that solution have few drawbacks like we need to check for element on parent container … Continue reading How to check an element is in viewport using Intersection Observer API