-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathTranslucent.qml
59 lines (52 loc) · 1.29 KB
/
Translucent.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
57
58
import Qt 4.7
Item {
width: 400
height: 400
Rectangle {
color: 'black'
anchors.fill: parent
gradient: Gradient {
GradientStop { position: 0; color: 'transparent' }
GradientStop { position: 1; color: 'black' }
}
//opacity: .4
}
Image {
id: rect
//width: 200
//height: 200
anchors.centerIn: parent
//opacity: .5
source: 'images/pyside-rounded-corners.png'
//color: 'red'
RotationAnimation {
target: rect
property: 'rotation'
from: 0
to: 360
loops: Animation.Infinite
running: true
duration: 2500
}
SequentialAnimation {
running: true
loops: Animation.Infinite
PropertyAnimation {
target: rect
property: 'scale'
from: 1
to: 2
duration: 1000
easing.type: Easing.OutBounce
}
PropertyAnimation {
target: rect
property: 'scale'
from: 2
to: 1
duration: 2500
easing.type: Easing.OutExpo
}
}
}
}