Closed kiki90 closed 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...
Currently, it is not possible to animate a layer group, but I will consider adding it to the upcoming version of jCanvas.
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...