Onclick play GIF image with jQuery and start from beginning

后端 未结 2 1517
我在风中等你
我在风中等你 2021-01-06 10:52

I have a website with images on it. Some of the images are animated GIF images. What I\'ve done is to show a static image of the GIF and on a click event, the actual GIF ima

2条回答
  •  萌比男神i
    2021-01-06 11:34

    You need to divide mouse event to mousedown and mouseup, perform hiding first and showing second or viceversa on mousedown then perform hiding first and showing second or viceversa on up,

提交回复
热议问题