Quantcast
Channel: Qt DevNet forums: Qt Quick 1283365070**
Viewing all articles
Browse latest Browse all 4972

Parallel Animation and property change in sequence

$
0
0
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 }

Viewing all articles
Browse latest Browse all 4972

Trending Articles