Reputation: 10333
I am not trying to pause or do anything fancy. I just want to click on the animated gif and stop it. If I click again I would like it to play from the beginning. Is there a simple solution to this that will work in all browsers? Would swapping the animated gif for the first frame of the gif in the DOM be a safe way to do this?
Upvotes: 3
Views: 1964
Reputation: 368
the another sites create two files for this.
thumbnail as JPG files for showing on default
and Gif file
when you click on JPG files GIF file replace with that and start to download and showing when you click again on GIF file you see JPG thumbnail.
this is a trick for showing you and you think yourself this is stop and playing system.
Upvotes: 2