左下飞出
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 PropertyAnimation { to: 360; easing.type: Easing.InOutBack;duration: 1000; loops: Animation.Infinite } } SequentialAnimation on y { id: animation2 running:false PropertyAnimation { to: 630; easing.type: Easing.InOutBack;duration: 1000; loops: Animation.Infinite } }}}}