Thanks!
Here is what I did and it works perfectly.
ParallelAnimation
{
id: fadeOut
running: false
NumberAnimation { target: screen; property: "opacity"; to: 0; duration: 300; easing.type: Easing.InQuad }
NumberAnimation { target: screen; property: "scale"; to: 0; duration: 300; easing.type: Easing.InQuad }
alwaysRunToEnd: true
onStopped:
{
buttonMenu.updateSource() // source update is done in separate qml file via this function
fadeIn.start()
}
}
ParallelAnimation
{
id: fadeIn
running: false
NumberAnimation { target: screen; property: "opacity"; to: 1; duration: 300; easing.type: Easing.InQuad }
NumberAnimation { target: screen; property: "scale"; to: 1; duration: 300; easing.type: Easing.InQuad }
alwaysRunToEnd: true
}
↧