caleb531 / jcanvas

A jQuery plugin that makes the HTML5 canvas easy to work with.
https://projects.calebevans.me/jcanvas/
MIT License
626 stars 192 forks source link

animating multiple layers but same group #27

Closed kiki90 closed 12 years ago

kiki90 commented 12 years ago

So,

I have this code

for(i = 1; i < 5; i++){ $('canvas').drawImage({ width: w, source: "images/image.png", layer: true, group: 'image', x: 0, y: height*(i), fromCenter: false }) }

$('canvas').animateLayer(image, { y: 5000 }, 10000, 'swing', function(){ first.y = 0; })

It does not work and I would like to know if this is possible to do.. I would like to have multiple images on top of each other and animate them as one single image to move downwards...

caleb531 commented 12 years ago

Currently, it is not possible to animate a layer group, but I will consider adding it to the upcoming version of jCanvas.