JavaScript to control image animation?

后端 未结 4 1058
无人共我
无人共我 2020-12-16 04:16

I\'d like to have an animated character on the page, with different animations for different behaviours. I currently have two ideas for how it could work:

IDEA 1: Ha

4条回答
  •  太阳男子
    2020-12-16 04:34

    You might want to take a look at freezeframe.js. It uses a canvas element to extract the first frame from a GIF in order to pause it.

提交回复
热议问题