左下飞出

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

 

posted on 2013-02-23 12:07  小风儿_xf  阅读(146)  评论(0编辑  收藏  举报

导航