Hi Sam,
I am referring Animation.js from twixt.
var someNumberProperty = new NumberProperty( 100 );
var someObject = { someAttribute: new Vector2( 100, 5 ) };
new Animation( {
// Options for the Animation as a whole
duration: 2,
targets: [ {
// First target
property: someNumberProperty,
to: 5
}, {
// Second target
object: someObject,
attribute: 'someAttribute',
to: new Vector2( 50, 10 )
} ]
} );
My question is, property "object" taking an argument of Vector2 for positioning.
However, I want to target a specific object on the screen to move it to different location
with easing. How can I set a target object explicitly?
Perhaps, this is bad usage of Animation. My requirement is to move an object on the screen from current location to different location with easing over delay.
Could you provide any suggestions please?
Thanks & Regards,
Sai Surya