Hello,
I am trying to tween the "size" of a paper.js rectangle:
var rectangle = new Path.Rectangle({
strokeColor: 'rgba(255,0,0,0.5)',
strokeWidth: 3,
point: [46.1, 250.5],
size: [223.2, 137.9]
});
Have you any idee how to do that? I have tried to do it with array (technic below) but it seams im the beginer im supposed to be in javascript
Could you help me?
Here is my code:
var arr1 = [223.2, 137.9];
var arr2 = [400, 200];
var rectangle = new Path.Rectangle({
strokeColor: 'rgba(255,0,0,0.5)',
strokeWidth: 3,
point: [46.1, 250.5],
size: arr1
});
arr2.ease = Back.easeInOut;
TweenMax.to(arr1, 10, arr2);