i have an animated image i want to show and hide it as it is already moving in different positions. please tell me how to do it.
here is the link to code:
http://jsfiddle.net/u39pK/1/
thanks in advance
Show and hide the image
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.

Puneet GuptaRank #2,006 · 724 reputationPosted Sep 23, 2013, 5:44 AM EDT
$('.image').animate({ top: newq[0], left: newq[1] }, speed, function(){
animateDiv();
});
to
$('.image').animate({ top: newq[0], left: newq[1] }, speed, function(){
$('.image').fadeIn('slow');
$('.image').fadeOut('slow');
animateDiv();
});
I think you want this type of functionality