Ok with this..
$(window).scroll(function()
{
$('.slides_layover').removeClass('showing_layover');
$('#slides_effect').show();
});
I can tell when someone is scrolling from what I understand. So with that I am trying to figure out how to catch when someone has stopped. From the above example you can see I am removing a class from a set of elements while the scrolling is occurring. However, I want to put that class back on when the user stops scrolling.
The reason for this is I am intent on having a layover show while the page is scrolling to give the page a special effect I am attempting to work on. But the one class I am trying to remove while scrolling conflicts with that effect as its a transparency effect to some nature.
Update
I wrote an extension to enhance jQuery’s default
on-event-handler. It attaches an event handler function for one or more events to the selected elements and calls the handler function if the event was not triggered for a given interval. This is useful if you want to fire a callback only after a delay, like the resize event, or such.It is important to check the github-repo for updates!
https://github.com/yckart/jquery.unevent.js
Use it like any other
onorbind-event handler, except that you can pass an extra parameter as a last:http://yckart.github.com/jquery.unevent.js/
(this demo uses
resizeinstead ofscroll, but who cares?!)