Best way to check if an element is in viewport? - Intersection Observer API #html #css #javascript