Skip to content

Instantly share code, notes, and snippets.

@ultramcu
Created July 3, 2013 18:44
Show Gist options
  • Save ultramcu/5921553 to your computer and use it in GitHub Desktop.
Save ultramcu/5921553 to your computer and use it in GitHub Desktop.
Element Image and Animation part I (NumberAnimation)
/*
Element Image and Animation part I (NumberAnimation)
Author : MaIII Themd
Website : http://miiniq.blogspot.com
FB : http://www.facebook.com/PiShared
Env : Qt 5.0.2 clang 64 bit OSX 10.8.4
*/
import QtQuick 2.0
Rectangle {
id : rec_main;
width: 750
height: 400
color: "pink"
Image {
id: img
x:0;y:0;
scale: 0.8;
source: "./roter_mini.png"
NumberAnimation on x {
from: 0; to: 480
duration: 1000
}
NumberAnimation on scale {
from: 0.8; to: 0.2
duration: 1000
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment