Frame by frame animation in HTML5 with canvas

前端 未结 2 479
深忆病人
深忆病人 2020-12-15 02:09

I have a flash animation I am trying to convert to HTML5. Now I have taken out all the images. For example in the hand animation, I have taken images of all hand images. I h

2条回答
  •  北荒
    北荒 (楼主)
    2020-12-15 02:39

    This worked for me as well! For some reason, it didn't work when I had used the OP's opening code: function draw(){

    However when I used: window.onload = function draw() { the animation plays on the canvas. I'm also using about 150 PNG images with an Alpha channel so this is a great way to bring 'video' or create composites to the iPad/iPhone. I confirm that it does work on iPad iOS 4.3.

提交回复
热议问题