![jquery_black](http://codehints.in/wp-content/uploads/2014/02/jquery_black.jpg)
var scrolled = false; $(window).scroll(function () { if (650 < $(window).scrollTop() && !scrolled) { ——————————-animation here—————————— scrolled = true; } if (650 > $(window).scrollTop() && scrolled) { ——————————-animation here—————————— scrolled = false; } });