From 02e5554a9372fae6e6a9e75d7e7dc8e446be51e8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Carlos=20Enrique=20P=C3=A9rez=20S=C3=A1nchez?= Date: Wed, 15 Jan 2020 20:45:48 -0500 Subject: [PATCH] Add a transition to the delegates in the wallets's view --- src/ui/PageWallets.qml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/src/ui/PageWallets.qml b/src/ui/PageWallets.qml index 14b81bae..28ed2220 100644 --- a/src/ui/PageWallets.qml +++ b/src/ui/PageWallets.qml @@ -101,6 +101,21 @@ Page { clip: true // limit the painting to it's bounding rectangle model: walletModel delegate: WalletListDelegate {} + + populate: Transition { + id: transitionPopulate + + SequentialAnimation { + PropertyAction { property: "opacity"; value: 0.0 } + PauseAnimation { + duration: transitionPopulate.ViewTransition.index === 0 ? 150 : 150 + (transitionPopulate.ViewTransition.index - transitionPopulate.ViewTransition.targetIndexes[0]) * 50 + } + ParallelAnimation { + NumberAnimation { property: "opacity"; from: 0.0; to: 1.0; duration: 250; easing.type: Easing.OutCubic } + NumberAnimation { property: "scale"; from: 0.8; to: 1.0; duration: 250; easing.type: Easing.OutCubic } + } + } + } } }