import QtQuick 2.0
Rectangle {
width: 360; height: 630
Image {
id: front
source: "1.png"
Image{
id: back
source: "2.png"
MouseArea { anchors.fill: parent; onClicked: {animation1.running = true;animation2.running = true;Component.onCompleted=back.destroy(1000)}}
SequentialAnimation on x {
running:false
id: animation1
loops: 50
PropertyAnimation {easing.type: Easing.InOutElastic;to: 50 ;duration:10}
PropertyAnimation {easing.type: Easing.OutInElastic; to: 0 ;duration:10}
}
SequentialAnimation on y {
id: animation2
running:false
loops: 50
PropertyAnimation { easing.type: Easing.InOutBounce;to: 50 ;duration:10}
PropertyAnimation { easing.type: Easing.OutInBounce;to: 0 ;duration:10}
}}}}