Animated GIF in HTML5 canvas

前端 未结 5 2512
故里飘歌
故里飘歌 2020-12-04 15:21

In HTML5, how can I draw easily (no too much complex code please) an animated GIF in a canvas that works (with drawImage only first frame is shown in the canvas)

5条回答
  •  感情败类
    2020-12-04 15:53

    Canvas animation is not part of the HTML5 spec. Either revert to GIF or consider a JavaScript-based library that renders SVG or falls back to Canvas/VML: http://raphaeljs.com/

提交回复
热议问题