Ok with this..
$(window).scroll(function()
{
$(\'.slides_layover\').removeClass(\'showing_layover\');
$(\'#slides_effect\').show();
});
Ok this is something that I've used before.
Basically you look a hold a ref to the last scrollTop()
.
Once your timeout clears, you check the current scrollTop()
and if they are the same, you are done scrolling.
$(window).scroll((e) ->
clearTimeout(scrollTimer)
$('header').addClass('hidden')
scrollTimer = setTimeout((() ->
if $(this).scrollTop() is currentScrollTop
$('header').removeClass('hidden')
), animationDuration)
currentScrollTop = $(this).scrollTop()
)