diff options
author | David Boddie <dboddie@trolltech.com> | 2010-08-17 13:31:48 (GMT) |
---|---|---|
committer | David Boddie <dboddie@trolltech.com> | 2010-08-17 13:31:48 (GMT) |
commit | 86c3fed122b8a6e47904d958f8c50fa19e668434 (patch) | |
tree | 17d83fa3578a071a5fec723ad1455f421b2638d2 /doc/src/snippets/declarative/qml-intro/sequential-animation3.qml | |
parent | 12ebf6c45428e303e0f238d59f144f3b4816ec3b (diff) | |
download | Qt-86c3fed122b8a6e47904d958f8c50fa19e668434.zip Qt-86c3fed122b8a6e47904d958f8c50fa19e668434.tar.gz Qt-86c3fed122b8a6e47904d958f8c50fa19e668434.tar.bz2 |
Doc: Started work to tidy up existing QML docs.
Reviewed-by: Trust Me
Diffstat (limited to 'doc/src/snippets/declarative/qml-intro/sequential-animation3.qml')
-rw-r--r-- | doc/src/snippets/declarative/qml-intro/sequential-animation3.qml | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/doc/src/snippets/declarative/qml-intro/sequential-animation3.qml b/doc/src/snippets/declarative/qml-intro/sequential-animation3.qml new file mode 100644 index 0000000..5e7b400 --- /dev/null +++ b/doc/src/snippets/declarative/qml-intro/sequential-animation3.qml @@ -0,0 +1,46 @@ +Rectangle { + id: mainRec + width: 600 + height: 400 + z: 0 + + Image { + id: image2 + source: "images/qt-logo.png" + width: 100; height: 100 + x: (mainRec.width - 100)/2; y: (mainRec.height - 100)/2 + z: 2 + } + + Image { + id: image1 + source: "images/qt-logo.png" + x: 20; y: 20 ; z: 1 + width: 100; height: 100 + + SequentialAnimation on x { + loops: Animation.Infinite + NumberAnimation { + from: 20; to: 450 + easing.type: "InOutQuad"; duration: 2000 + } + PauseAnimation { duration: 500 } + } + + SequentialAnimation on y { + loops: Animation.Infinite + NumberAnimation { + from: 20; to: 250 + easing.type: "InOutQuad"; duration: 2000 + } + PauseAnimation { duration: 500 } + } + + SequentialAnimation on scale { + loops: Animation.Infinite + NumberAnimation { from: 1; to: 0.5; duration: 1000 } + NumberAnimation { from: 0.5; to: 1; duration: 1000 } + PauseAnimation { duration: 500 } + } + } +} |