Detect when a <div> tag is in viewport.