Fancy effects: add smooth opacity animation behavior

This commit is contained in:
Alexey Andreyev
2021-02-08 16:01:36 +03:00
committed by Carl Schwan
parent e7a862a1d9
commit 9d6d7789bb

View File

@@ -46,7 +46,17 @@ Item {
running: false
onRunningChanged: {
visible = running
if (running) {
opacity = 1
} else {
opacity = 0
}
}
Behavior on opacity {
SequentialAnimation {
NumberAnimation { duration: Kirigami.Units.longDuration }
}
}
ItemParticle {
@@ -95,7 +105,17 @@ Item {
running: false
onRunningChanged: {
visible = running
if (running) {
opacity = 1
} else {
opacity = 0
}
}
Behavior on opacity {
SequentialAnimation {
NumberAnimation { duration: Kirigami.Units.longDuration }
}
}
ItemParticle {