How would you get a GIF image to load only once?
Hello
There is a loop count property on a gif if that is empty then it loops forever. There are a lot of online tools that can set this property for eg https://ezgif.com/
Try to create a gif whose loop count = 1 and it should load only once.
Trying this in a demo, will let you know if that works as expected.
Regards
Amal Raj wrote:
Tried a small sample and its working as expected.
Hope this helps !!!
Thanks! Just one follow-up question: why does my GIF not play every time it appears?The first time my GIF appears, it plays. Subsequently, it appears, but remains static (as if played). Sometimes, when an input leading up to the GIF appearance is different, it plays again. What may cause this behavior?Thanks!
YS Yeo wrote:
Can you please elaborate it more.
Amreen Shaikh wrote:
Sorry. I meant run only once (instead of infinitely looping).
Or you can do it with Javascript ??
https://davidwalsh.name/prevent-gif-loop
Regards,
Jasper