mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-04-26 14:23:09 +00:00
startupfeedback: Optimize animation playback on slower devices with delay
This commit is contained in:
parent
906c169f26
commit
1d3ffa707d
1 changed files with 10 additions and 6 deletions
|
|
@ -144,33 +144,37 @@ Item {
|
||||||
root.visible = true;
|
root.visible = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
// slight pause to give slower devices time to catch up when the item becomes visible
|
||||||
|
PauseAnimation { duration: 50 }
|
||||||
ParallelAnimation {
|
ParallelAnimation {
|
||||||
|
property real animationDuration: PlasmaCore.Units.longDuration + PlasmaCore.Units.shortDuration
|
||||||
|
|
||||||
ScaleAnimator {
|
ScaleAnimator {
|
||||||
target: background
|
target: background
|
||||||
from: background.scale
|
from: background.scale
|
||||||
to: 1
|
to: 1
|
||||||
duration: PlasmaCore.Units.longDuration
|
duration: animationDuration
|
||||||
easing.type: Easing.InOutQuad
|
easing.type: Easing.OutCubic
|
||||||
}
|
}
|
||||||
ScaleAnimator {
|
ScaleAnimator {
|
||||||
target: iconParent
|
target: iconParent
|
||||||
from: iconParent.scale
|
from: iconParent.scale
|
||||||
to: 1
|
to: 1
|
||||||
duration: PlasmaCore.Units.longDuration
|
duration: animationDuration
|
||||||
easing.type: Easing.InOutQuad
|
easing.type: Easing.OutCubic
|
||||||
}
|
}
|
||||||
XAnimator {
|
XAnimator {
|
||||||
target: backgroundParent
|
target: backgroundParent
|
||||||
from: backgroundParent.x
|
from: backgroundParent.x
|
||||||
to: 0
|
to: 0
|
||||||
duration: PlasmaCore.Units.longDuration
|
duration: animationDuration
|
||||||
easing.type: Easing.OutCubic
|
easing.type: Easing.OutCubic
|
||||||
}
|
}
|
||||||
YAnimator {
|
YAnimator {
|
||||||
target: backgroundParent
|
target: backgroundParent
|
||||||
from: backgroundParent.y
|
from: backgroundParent.y
|
||||||
to: 0
|
to: 0
|
||||||
duration: PlasmaCore.Units.longDuration
|
duration: animationDuration
|
||||||
easing.type: Easing.OutCubic
|
easing.type: Easing.OutCubic
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue