do something when scroll up and somethin else when scroll down in jquery
<p>I want to add a little down arrow on my website when users scroll down and an arrow pointing up when they scroll up.</p>

<p>The only thing  I managed to do is this </p>

<pre><code>    $(document).ready(function(){
                 $(window).scroll(function () {
                    $("#bottomArrow").show(); 
                    setTimeout(function(){ $("#bottomArrow").fadeOut() }, 2000);
            });
}); 
</code></pre>

<p>which does not recognize the up and down, just the "scroll".</p>

<p>How can I do this with jQuery ?</p>

<p>Thank you :)</p>
