Created
July 4, 2012 12:43
-
-
Save lbt/3047142 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import QtQuick 2.0 | |
Item { | |
width: 1400 | |
height: 800 | |
Image { | |
sourceSize.width: parent.width | |
sourceSize.height: parent.height | |
fillMode: Image.PreserveAspectCrop | |
anchors.fill: parent | |
source: "wallpaper.jpg" | |
NumberAnimation on rotation { | |
id: rAnim2 | |
from: 360 | |
to: 0 | |
duration: 5000 | |
loops: Animation.Infinite | |
} | |
} | |
Image { | |
id: root | |
sourceSize.width: parent.width | |
sourceSize.height: parent.height | |
// fillMode: Image.PreserveAspectCrop | |
Component.onCompleted: { | |
height = parent.height | |
width = parent.width | |
} | |
source: "wallpaper.jpg" | |
SequentialAnimation { | |
running: true | |
loops: Animation.Infinite | |
NumberAnimation { | |
target: root | |
property: "scale" | |
from: 0.1 | |
to: 2.0 | |
duration: 3000 | |
} | |
NumberAnimation { | |
target: root | |
property: "scale" | |
from: 2.0 | |
to: 0.1 | |
duration: 500 | |
} | |
} | |
NumberAnimation on rotation { | |
id: rAnim | |
from: 0 | |
to: 360 | |
duration: 5000 | |
loops: Animation.Infinite | |
} | |
} | |
FPSMonitor { | |
anchors.top: parent.top | |
anchors.left: parent.left | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment