I've been developing a web site with PHP, and I'd like to put a set of images which will be activated when it's clicked or hovered.
If you simply put an animated gif
image by the <img>
tag (like <img src ="images/samle.gif">
), you'll see the image moving but you couldn't start it by yourself or stop it.
What I'm trying to do is to ensure that the image will move only it's clicked/hovered, as giphy.com is showing. (This site demonstrates exactly what I've been trying to do. Unfortunately it doesn't show how those images are activated.)
I have come up with an idea. That is to create an .avi file from .ppt file by using a converter, then embedding a video player onto an HTML or PHP file. However, even if this idea is feasible, the example of giphy.com would be simpler than that.
So, if you have any other idea as to having gif (or other types of images) files animated, I'd like to know it. Thanks in advance.