mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-29 04:08:54 +03:00
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:
parent
06b251063e
commit
c6ff66be79
1 changed files with 13 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue