Animate a components properties using a easy syntax.
var uActions = require('u-actions');var Action = uActions.Action;var uTween = require('u-tween');var TweenType = uTween.TweenType;new Action('Animate!', moveImage) .addParameter('Image to move', uActions.ParamType.IMAGE) .register();function moveImage(myImage) { myImage.tween(1, { x: 10, y: 400, alpha: 60, scale:0.2 }, TweenType.EASE_BOTH);}
Animate a components properties using a easy syntax.