Stuck with scroll event

hi everyone i stuck with it

https://codepen.io/mhmdozer/pen/OeNgJa?editors=0010

I want add new property to function which will execute scrollTop value between 1000 and 1200. i cant add it. How can I add to it?