How to Get Scroll Position Every 200 Scroll?

How to Get Scroll Position Every 200 Scroll?

I am trying to get the scroll down and up position at This Demo  but as you can see it is updating the <p> element on every pixel by pixel scroll (Up or Down). But what I need to only update the <p> on every 200 scroll until reaching the end of the div (right now the p element is updating on every single scroll ). Here is the code I have:

  1. $(window).scroll(function () {
  2.           var height = $(window).scrollTop();
  3.           if (height > 200) {
  4.               $('p').html(height);
  5.           }
  6. });

  1. <p></p>
  2. <div>
  3.           <h3> Hello Scrol!</h3>
  4. </div>
 Thanks