-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathColorAnimationTest.qml
56 lines (50 loc) · 1.27 KB
/
ColorAnimationTest.qml
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
import QtQuick 2.5
Item {
width: 960
height: 160
Rectangle {
anchors.fill: parent
color: "red"
border.width: 1
border.color: "white"
Text {
anchors.centerIn: parent
font.pixelSize: 48
text: "Hello world!"
color: "black"
SequentialAnimation on font.pixelSize {
running: true
loops: Animation.Infinite
PropertyAnimation { duration: 1000; to: 64 }
PropertyAnimation { duration: 1000; to: 48 }
}
}
SequentialAnimation on color {
running: true
loops: Animation.Infinite
ColorAnimation {
from: "red"
to: "green"
duration: 1000
}
ColorAnimation {
from: "green"
to: "blue"
duration: 1000
}
ColorAnimation {
from: "blue"
to: "green"
duration: 1000
}
ColorAnimation {
from: "green"
to: "red"
duration: 1000
}
}
}
Component.onCompleted: {
console.log("Loaded");
}
}