PDA

View Full Version : RotationAnimation



Binary01
6th June 2016, 20:01
Hii everyone

I want when I click on the Button, rotate the image,
Ok for the first time, but after it doesn't rotate

I want repeate rotation many times when I click on the button



Button {
...
Image{
id : background
source : "../background.jpg"

RotationAnimation onRotation {
from : 0
to : 360
duration : 300
running : root.running
}
}

anda_skoa
6th June 2016, 20:58
Not sure where that "onRotation" comes from, but what you are probably looking for it



RotationAnimation {
target: background
property: "rotation"

from: 0; to 100
duration: 300

running: root.running
}


Cheers,
_