aboutsummaryrefslogtreecommitdiffstats
path: root/src/imports/controls/material/StackView.qml
diff options
context:
space:
mode:
authorJ-P Nurmi <jpnurmi@theqtcompany.com>2015-12-18 21:55:34 +0100
committerJ-P Nurmi <jpnurmi@theqtcompany.com>2015-12-18 21:25:48 +0000
commitd82830e5a494e05db2325d0d75ade6a410cf9f57 (patch)
tree9fdf6494fb0c1f9ee9508a9b22d2e67afa882da6 /src/imports/controls/material/StackView.qml
parent9586162f1dbf3960321bfb1c392ee63864458deb (diff)
StackView: update Material style transitions
Change-Id: I5d294424d526e6082d2e5f23e69ed0e1f8dfe212 Reviewed-by: J-P Nurmi <jpnurmi@theqtcompany.com>
Diffstat (limited to 'src/imports/controls/material/StackView.qml')
-rw-r--r--src/imports/controls/material/StackView.qml24
1 files changed, 18 insertions, 6 deletions
diff --git a/src/imports/controls/material/StackView.qml b/src/imports/controls/material/StackView.qml
index c4ed33e5..776188e6 100644
--- a/src/imports/controls/material/StackView.qml
+++ b/src/imports/controls/material/StackView.qml
@@ -42,37 +42,49 @@ T.StackView {
//! [popEnter]
popEnter: Transition {
- XAnimator { from: -root.width; to: 0; duration: 400; easing.type: Easing.OutCubic }
+ // slide_in_left
+ NumberAnimation { property: "x"; from: 0.5 * -root.width; to: 0; duration: 200; easing.type: Easing.OutCubic }
+ NumberAnimation { property: "opacity"; from: 0.0; to: 1.0; duration: 200; easing.type: Easing.OutCubic }
}
//! [popEnter]
//! [popExit]
popExit: Transition {
- XAnimator { from: 0; to: root.width; duration: 400; easing.type: Easing.OutCubic }
+ // slide_out_right
+ NumberAnimation { property: "x"; from: 0; to: 0.5 * root.width; duration: 200; easing.type: Easing.OutCubic }
+ NumberAnimation { property: "opacity"; from: 1.0; to: 0.0; duration: 200; easing.type: Easing.OutCubic }
}
//! [popExit]
//! [pushEnter]
pushEnter: Transition {
- XAnimator { from: root.width; to: 0; duration: 400; easing.type: Easing.OutCubic }
+ // slide_in_right
+ NumberAnimation { property: "x"; from: 0.5 * root.width; to: 0; duration: 200; easing.type: Easing.OutCubic }
+ NumberAnimation { property: "opacity"; from: 0.0; to: 1.0; duration: 200; easing.type: Easing.OutCubic }
}
//! [pushEnter]
//! [pushExit]
pushExit: Transition {
- XAnimator { from: 0; to: -root.width; duration: 400; easing.type: Easing.OutCubic }
+ // slide_out_left
+ NumberAnimation { property: "x"; from: 0; to: 0.5 * -root.width; duration: 200; easing.type: Easing.OutCubic }
+ NumberAnimation { property: "opacity"; from: 1.0; to: 0.0; duration: 200; easing.type: Easing.OutCubic }
}
//! [pushExit]
//! [replaceEnter]
replaceEnter: Transition {
- XAnimator { from: root.width; to: 0; duration: 400; easing.type: Easing.OutCubic }
+ // slide_in_right
+ NumberAnimation { property: "x"; from: 0.5 * root.width; to: 0; duration: 200; easing.type: Easing.OutCubic }
+ NumberAnimation { property: "opacity"; from: 0.0; to: 1.0; duration: 200; easing.type: Easing.OutCubic }
}
//! [replaceEnter]
//! [replaceExit]
replaceExit: Transition {
- XAnimator { from: 0; to: -root.width; duration: 400; easing.type: Easing.OutCubic }
+ // slide_out_left
+ NumberAnimation { property: "x"; from: 0; to: 0.5 * -root.width; duration: 200; easing.type: Easing.OutCubic }
+ NumberAnimation { property: "opacity"; from: 1.0; to: 0.0; duration: 200; easing.type: Easing.OutCubic }
}
//! [replaceExit]
}