refactored transition logic and added getAttr method

This commit is contained in:
Eric Rowell
2013-03-15 16:19:12 -07:00
parent 69f9374c8e
commit c9d6820dbf
4 changed files with 54 additions and 42 deletions

View File

@@ -24,11 +24,11 @@ Test.Modules.TRANSITION = {
rect.transitionTo({
duration: 2,
x: 400,
y: 30,
shadowOffset: {
x: 80
},
x: 400,
y: 30,
rotation: Math.PI * 2,
easing: 'bounce-ease-out'
});
@@ -76,7 +76,10 @@ Test.Modules.TRANSITION = {
y: 1.5
},
duration: 1,
easing: easing
easing: easing,
callback: function() {
console.log('finished');
}
});
});
shape.on("mouseout", function() {