summaryrefslogtreecommitdiffstats
path: root/tests/auto/declarative/visual/animation/pauseAnimation/pauseAnimation.qml
blob: f2e065d4700590c122d63761ce9aef5e8e3f0343 (plain)
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
import Qt 4.6

Rectangle {
    id: rect
    width: 120
    height: 200
    color: "white"
    Image {
        id: img
        source: "pics/qtlogo.png"
        x: 60-width/2
        y: 200-height
        y: SequentialAnimation {
            repeat: true
            NumberAnimation {
                to: 0; duration: 500
                easing: "easeInOutQuad"
            }
            NumberAnimation {
                to: 200-img.height
                easing: "easeOutBounce"
                duration: 2000
            }
            PauseAnimation {
                duration: 1000
            }
        }
    }
}