Commit c81fe56d authored by Alex Rosca's avatar Alex Rosca Committed by Nate Graham

effects: Add an animation curve to maximize and fullscreen

Replace the default linear easing curve with OutCubic.
parent 49faf679
......@@ -37,7 +37,8 @@ var fullScreenEffect = {
from: {
value1: oldGeometry.width,
value2: oldGeometry.height
}
},
curve: QEasingCurve.OutCubic
}, {
type: Effect.Translation,
to: {
......@@ -47,7 +48,8 @@ var fullScreenEffect = {
from: {
value1: oldGeometry.x - newGeometry.x - (newGeometry.width / 2 - oldGeometry.width / 2),
value2: oldGeometry.y - newGeometry.y - (newGeometry.height / 2 - oldGeometry.height / 2)
}
},
curve: QEasingCurve.OutCubic
}]
});
if (!window.resize) {
......@@ -57,7 +59,8 @@ var fullScreenEffect = {
animations: [{
type: Effect.CrossFadePrevious,
to: 1.0,
from: 0.0
from: 0.0,
curve: QEasingCurve.OutCubic
}]
});
}
......
......@@ -37,7 +37,8 @@ var maximizeEffect = {
from: {
value1: oldGeometry.width,
value2: oldGeometry.height
}
},
curve: QEasingCurve.OutCubic
}, {
type: Effect.Translation,
to: {
......@@ -47,7 +48,8 @@ var maximizeEffect = {
from: {
value1: oldGeometry.x - newGeometry.x - (newGeometry.width / 2 - oldGeometry.width / 2),
value2: oldGeometry.y - newGeometry.y - (newGeometry.height / 2 - oldGeometry.height / 2)
}
},
curve: QEasingCurve.OutCubic
}]
});
if (!window.resize) {
......@@ -57,7 +59,8 @@ var maximizeEffect = {
animations: [{
type: Effect.CrossFadePrevious,
to: 1.0,
from: 0.0
from: 0.0,
curve: QEasingCurve.OutCubic
}]
});
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment