Are nested animations possible using canvas and javascript? For example, a butterfly flapping its wings whilst simultaneously moving along a path.
What would be the best way of going about creating this kind of animation? There will be multiple instances of the same butterfly moving in different directions.
At the minute I'm drawing the butterfly shape on the canvas, in two parts, the left and right wings, which I will animate separately. Then I'll go abou animating the whole butterfly on a path.
It just seems like there will be a lot of processing used on the multiple drawings and animations, could this be saved by using a PNG rather than a shape, or even an animated GIF?
Any advice would be appreciated! Thanks!