Changed the glass animations to a more bubble-like animation

This commit is contained in:
SomeElse
2026-05-25 06:06:33 +00:00
parent 390525ac72
commit 8d6406284f
7 changed files with 136 additions and 158 deletions

View File

@@ -158,6 +158,11 @@ Item {
opacity: 0
scale: 0.86
transform: Scale {
yScale: 1
origin.y: card.height / 2
}
Component.onCompleted: {
overlay.displayFlow = agent.flow
enterAnim.start()
@@ -175,6 +180,11 @@ Item {
from: 0.86; to: 1.0
duration: 360; easing.type: Easing.OutBack; easing.overshoot: 0.6
}
NumberAnimation {
target: card.transform; property: "yScale"
from: 0; to: 1
duration: 360; easing.type: Easing.OutBack; easing.overshoot: 0.6
}
}
ParallelAnimation {
@@ -189,6 +199,11 @@ Item {
from: 1.0; to: 0.88
duration: 260; easing.type: Easing.InBack
}
NumberAnimation {
target: card.transform; property: "yScale"
from: 1; to: 0
duration: 260; easing.type: Easing.InBack
}
onFinished: {
overlay.exiting = false
root.windowShouldExist = false
@@ -206,8 +221,9 @@ Item {
exitAnim.stop()
overlay.exiting = false
}
card.opacity = 0
card.scale = 0.86
card.opacity = 0
card.scale = 0.86
card.transform.yScale = 0
enterAnim.restart()
} else {
if (overlay.displayFlow)