mirror of
https://github.com/konvajs/konva.git
synced 2025-09-18 09:50:05 +08:00
refactored transition logic and added getAttr method
This commit is contained in:
@@ -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() {
|
||||
|
Reference in New Issue
Block a user