title: How to get the first DOM element that is visible in a viewport?
body: <p>How can I get the first DOM element that is visible in a viewport?</p>
  
  <p>PS: the first DOM element in a page will not be the first "visible" element when I scroll to the middle or bottom of the page</p>