title: Trigger event when certain scroll distance is reached jQuery
body: <p>I have a vh based website with elements I want to show when a certain vh has been scrolled. I tried using an if statement with a variable for distance scrolled, but it doesn't update constantly so it doesn't work: </p>
  
  <pre><code>var distancePX = $(window).scrollTop();
  var windowHeight = $(window).height();
  var distanceVH = scroll/height * 100;
  if (distance &gt;= 170) {
      //ACTIONS
  };
  </code></pre>
  
  <p>What can I use to make a constantly updating version of above?</p>