Please I need help to stop the animation on mouse hover and to continue on mouse out. Please see the url below to view the code. thanks
http://jsfiddle.net/AbdiasSoftware/F8x4p/
$(window).load(function(){
var pos = $('#center').position(),
radiusSat = $('#sat1').width() * 0.5,
radius = $('#center').width() * 0.5,
cx = pos.left + radius,
cy = pos.top + radius,
x, y, angle = 0,
angles = [],
spc = 360 / 25,
deg2rad = Math.PI / 180,
i = 0;
for(;i < 25; i++) {
angles.push(angle);
angle += spc;
}
/// space out radius
radius += (radiusSat + 25);
loop();
function loop() {
for(var i = 0; i < angles.length; i++) {
angle = angles[i];
x = cx + radius * Math.cos(angle * deg2rad);
y = cy + radius * Math.sin(angle * deg2rad);
$('#sat' + i).css({left:x - radiusSat, top:y - radiusSat});
angles[i] += 0.1;
if (angles[i] > 360) angles[i] = 0;
}
requestAnimationFrame(loop);
}
});