You can easily do this with pure javascript.
Just apply the Raphaël start and stop method.
var timer = null;
function scrolling() {
document.getElementById("Status").innerHTML = "scrolling..";
if(timer !== null) {
clearTimeout(timer);
}
timer = setTimeout(function() {
document.getElementById("Status").innerHTML = "stopped scrolling";
}, 150);
}
window.onscroll = scrolling;
Update
Here's a weave with a stopping and starting animation.
var paper = new Raphael('Animation', 100, 100);
var rect = paper.rect(20, 20, 20, 20).attr({fill: '#F00'});
var anim = Raphael.animation({transform: "r360"}, 2500).repeat(Infinity);
var timer = null;
function scrolling() {
document.getElementById("Status").innerHTML = "scrolling..";
if(timer !== null) {
rect.animate(anim);
}
timer = setTimeout(function() {
rect.stop();
}, 150);
}
window.onscroll = scrolling;