1
0
mirror of https://github.com/jaredtao/TaoQuick.git synced 2025-02-06 21:48:24 +08:00

64 lines
1.5 KiB
QML
Raw Normal View History

import QtQuick 2.9
import QtQuick.Controls 2.2
2019-08-03 20:51:11 +08:00
import TaoQuick 1.0
2020-10-14 13:33:27 +08:00
2020-10-21 16:32:26 +08:00
AnimationBase {
2019-08-03 20:51:11 +08:00
anchors.fill: parent
Image {
id: src
width: 230
height: 140
2020-07-17 00:54:05 +08:00
source: imgPath + "Effect/Girls/girl2.jpeg"
2019-08-03 20:51:11 +08:00
visible: false
}
Grid {
anchors.centerIn: parent
columns: 2
spacing: 40
ACleavage {
id: s1
2020-07-17 23:46:24 +08:00
width: 250
height: 375
2020-10-21 14:35:41 +08:00
dir: directHorizonToInner
2019-08-03 20:51:11 +08:00
effectSource.sourceItem: src
}
ACleavage {
id: s2
2020-07-17 23:46:24 +08:00
width: 250
height: 375
2020-10-21 14:35:41 +08:00
dir: directHorizonToOuter
2019-08-03 20:51:11 +08:00
effectSource.sourceItem: src
}
ACleavage {
id: s3
2020-07-17 23:46:24 +08:00
width: 250
height: 375
2020-10-21 14:35:41 +08:00
dir: directVerticalToInner
2019-08-03 20:51:11 +08:00
effectSource.sourceItem: src
}
ACleavage {
id: s4
2020-07-17 23:46:24 +08:00
width: 250
height: 375
2020-10-21 14:35:41 +08:00
dir: directVerticalToOuter
2019-08-03 20:51:11 +08:00
effectSource.sourceItem: src
}
}
Component.onCompleted: {
ani.start()
}
SequentialAnimation {
id: ani
ScriptAction {script: {s1.restart() } }
PauseAnimation {duration: 1200}
ScriptAction {script: {s2.restart() } }
PauseAnimation {duration: 1200}
ScriptAction {script: {s3.restart() } }
PauseAnimation {duration: 1200}
ScriptAction {script: {s4.restart() } }
}
2020-10-21 16:32:26 +08:00
onReplayClicked: {
ani.restart()
2019-08-03 20:51:11 +08:00
}
}