Skip to content

Instantly share code, notes, and snippets.

@lbt
Created July 4, 2012 12:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lbt/3047142 to your computer and use it in GitHub Desktop.
Save lbt/3047142 to your computer and use it in GitHub Desktop.
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