Smoother deletions: Added animation for removeDisplaced including sequential opacity change and displacement animation

Signed-off-by: Dominique Fuchs <32204802+DominiqueFuchs@users.noreply.github.com>
This commit is contained in:
Dominique Fuchs 2019-11-04 12:48:07 +01:00
parent 06b251063e
commit c6ff66be79

View file

@ -369,11 +369,22 @@ Window {
}
add: Transition {
NumberAnimation { properties: "y"; from: -60; duration: 150; easing.type: Easing.Linear }
NumberAnimation { properties: "y"; from: -60; duration: 100; easing.type: Easing.Linear }
}
remove: Transition {
NumberAnimation { property: "opacity"; from: 1.0; to: 0; duration: 100 }
}
removeDisplaced: Transition {
SequentialAnimation {
PauseAnimation { duration: 100}
NumberAnimation { properties: "y"; duration: 100; easing.type: Easing.Linear }
}
}
displaced: Transition {
NumberAnimation { properties: "y"; duration: 150; easing.type: Easing.Linear }
NumberAnimation { properties: "y"; duration: 100; easing.type: Easing.Linear }
}
focus: true