July 16, 201214 yr Hi all, I have a few quirky flash animations on a website, however they don't show on iPad or iPhone. I was thinking about making them as animated .gif as they are very short animations, with only one colour used. However, I ideally need them to have a transparent background, and this looks horrid without PNG-24! I don't think the animation would be achievable using CSS3. Is there a way to create animations using HTML5? The animation is of a hand, in which the fingers wriggle!
July 16, 201214 yr Author ah yes I thought <canvas> might be one of the possible solutions. Is it pretty tricky to get your head around? Edited July 16, 201214 yr by C A R
July 16, 201214 yr Author can i see the animation? here's the link to the animation https://dl.dropbox.com/u/43279823/hand.swf
July 16, 201214 yr Canvas is probably the best way to perform the task and several jQuery plugins exist to make sprite animation fairly simple. The only other alternative is the APNG (animated png) format but not all browsers support this just yet. Do you have a link for the gif version?.. with no gradients the image should animate reasonably well. Edited July 16, 201214 yr by Sogo7
July 16, 201214 yr Author Canvas is probably the best way to perform the task and several jQuery plugins exist to make sprite animation fairly simple. The only other alternative is the APNG (animated png) format but not all browsers support this just yet. Do you have a link for the gif version?.. with no gradients the image should animate reasonably well. here's the .gif hand on a coloured background https://dl.dropbox.com/u/43279823/hand-sequence-seq-blue.gif ideally, it needs to be on a transparent background, however it then ends up looking choppy, like here https://dl.dropbox.com/u/43279823/hand-sequence-seq.gif
July 16, 201214 yr Ahh.. I see the problem. The gif image looks 'choppy' because there are only 15 frames. Flash of course works out the inbetween frames hence the more fluid look. The individual finger elements could drawn and moved purely with code using canvas but at a guess that could be a messy block of code. An old school alternative method would be compile the SWF as a FLV then step through every frame using something like the VLC media player taking a screenshot then build the animated gif that way one frame at a time. Used the above method to build this animated gif a while back, its 34 frames copied, cropped from a Youtube video.
July 16, 201214 yr Author Ahh.. I see the problem. The gif image looks 'choppy' because there are only 15 frames. Flash of course works out the inbetween frames hence the more fluid look. The individual finger elements could drawn and moved purely with code using canvas but at a guess that could be a messy block of code. An old school alternative method would be compile the SWF as a FLV then step through every frame using something like the VLC media player taking a screenshot then build the animated gif that way one frame at a time. Used the above method to build this animated gif a while back, its 34 frames copied, cropped from a Youtube video. That sounds like it might work well. I might give this a try. Thanks for the advice, and example
Create an account or sign in to comment