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
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Puneet GuptaPosted Sep 23, 2013, 9:44 AM
$('.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