I tried displaying a gif animated image inside my HTML code like
<img src="preview.gif" loop=infinite />
With or without the loop tag , it always plays once only.
Any help to make it loop continuously?
<img loop=""> Attribute: Make Videos Loop In Your HTML Previously used to specify the number of times a video should play, when used in conjunction with the dynsource attribute.
Click Animation from the menu at the top. Click Edit GIF Animation. Click the drop-down menu next to Looping and choose how many times you want the GIF to loop. Click Apply.
Looping is encoded into the GIF itself, not the img
tag. Open the GIF in an image editor and change the mode to loop, or use a different GIF. The loop
attribute is an invalid, deprecated attribute only meant to work when the src
is a video.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With