blob: 8c59fc351ef78191c86c09167bdf22ce2316e92a (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
|
import QtQuick 2.0
import GoExtensions 1.0
Rectangle {
id: root
width: 640
height: 280
color: "black"
Rectangle {
x: 20; y: 20; width: 100; height: 100
color: "red"
SequentialAnimation on x {
loops: Animation.Infinite
NumberAnimation { from: 20; to: 120; duration: 4000; easing.type: Easing.InOutQuad }
NumberAnimation { from: 120; to: 20; duration: 4000; easing.type: Easing.InOutQuad }
}
}
Rectangle {
x: 40; y: 40; width: 100; height: 100
color: "yellow"
opacity: 0.7
SequentialAnimation on x {
loops: Animation.Infinite
NumberAnimation { from: 40; to: 220; duration: 4000; easing.type: Easing.InOutQuad }
NumberAnimation { from: 220; to: 40; duration: 4000; easing.type: Easing.InOutQuad }
}
}
GoRect {
x: 60; y: 60; width: 100; height: 100
SequentialAnimation on x {
loops: Animation.Infinite
NumberAnimation { from: 60; to: 320; duration: 4000; easing.type: Easing.InOutQuad }
NumberAnimation { from: 320; to: 60; duration: 4000; easing.type: Easing.InOutQuad }
}
}
Rectangle {
x: 80; y: 80; width: 100; height: 100
color: "yellow"
opacity: 0.7
SequentialAnimation on x {
loops: Animation.Infinite
NumberAnimation { from: 80; to: 420; duration: 4000; easing.type: Easing.InOutQuad }
NumberAnimation { from: 420; to: 80; duration: 4000; easing.type: Easing.InOutQuad }
}
}
Rectangle {
x: 100; y: 100; width: 100; height: 100
color: "red"
SequentialAnimation on x {
loops: Animation.Infinite
NumberAnimation { from: 100; to: 520; duration: 4000; easing.type: Easing.InOutQuad }
NumberAnimation { from: 520; to: 100; duration: 4000; easing.type: Easing.InOutQuad }
}
}
}
|