RotateTransition { toAngleZ: 0.00 duration: 1000 fromAngleZ: 0.0 }
TranslateTransition { toX: 100.00 duration: 1000 fromX: 10.0 toY: 0.0 fromY: 0.0 }
Button { text: "Click me" animations: [ RotateTransition { id: rotateAnimation toAngleZ: 180 duration: 3000 } ] onClicked: { rotateAnimation.play(); } }
import bb.cascades 1.0 Page { content: Button { id: rotatingButton text: "My Rotating Button" animations: [ RotateTransition { id: rotButton toAngleZ: 360 duration: 350 } ] onClicked: { rotButton.play(); } } }
Last edited by bbquincar; 09-22-12 at 01:43 PM.