Login Register

animation animatetransform curve

animateTransform and curves

Hello,

I´m doing my motion animations to shapes on a dojo.gfx.surface by this code:

dojox.gfx.fx.animateTransform({
					shape : shape,
					duration : (ani.duration * 1000), //ms
					transform: [
				            {name : "translate", start : [ani.fromx, ani.fromy], end:[ani.tox,ani.toy]}
				    ]
					});

but this type of animations are just linear. Now I want to make an animation with a curve. When use something like this:
dojox.gfx.fx.animateTransform({
shape : shape,
curve: [...],

Syndicate content