1

there is any way to reset(play again) a gif without downloading it?

I was using the following code to restart the gif:

rplImg = new Image();
 var d = new Date();
 rplImg.src = "imagens/Mex_Gif.gif?" + d.valueOf();

 $('#baixo').css('background-image', 'url('+rplImg.src+')');

That way the browser restart the animation because he thinks its another file and download again.

How can I animate the gif without downloading again? The animation shold run everytime the user clicks a button, I can't redownload it everytime.

0 Answers0