Skip to content

Commit

Permalink
Add a transition to the delegates in the wallets's view
Browse files Browse the repository at this point in the history
  • Loading branch information
stdevCrow committed Jan 16, 2020
1 parent 6b5c450 commit 02e5554
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions src/ui/PageWallets.qml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }
}
}
}
}
}

Expand Down

0 comments on commit 02e5554

Please sign in to comment.