startupfeedback: Optimize animation playback on slower devices with delay

This commit is contained in:
Devin Lin 2021-12-29 10:47:19 -05:00
parent 906c169f26
commit 1d3ffa707d

View file

@ -144,33 +144,37 @@ Item {
root.visible = true;
}
}
// slight pause to give slower devices time to catch up when the item becomes visible
PauseAnimation { duration: 50 }
ParallelAnimation {
property real animationDuration: PlasmaCore.Units.longDuration + PlasmaCore.Units.shortDuration
ScaleAnimator {
target: background
from: background.scale
to: 1
duration: PlasmaCore.Units.longDuration
easing.type: Easing.InOutQuad
duration: animationDuration
easing.type: Easing.OutCubic
}
ScaleAnimator {
target: iconParent
from: iconParent.scale
to: 1
duration: PlasmaCore.Units.longDuration
easing.type: Easing.InOutQuad
duration: animationDuration
easing.type: Easing.OutCubic
}
XAnimator {
target: backgroundParent
from: backgroundParent.x
to: 0
duration: PlasmaCore.Units.longDuration
duration: animationDuration
easing.type: Easing.OutCubic
}
YAnimator {
target: backgroundParent
from: backgroundParent.y
to: 0
duration: PlasmaCore.Units.longDuration
duration: animationDuration
easing.type: Easing.OutCubic
}
}