Skip to content

Instantly share code, notes, and snippets.

@dridk
Created October 24, 2012 22:57
Show Gist options
  • Save dridk/3949466 to your computer and use it in GitHub Desktop.
Save dridk/3949466 to your computer and use it in GitHub Desktop.
QML mode
import bb.cascades 1.0
Page {
Button {
id: rotatingButton
text: "My Rotating Button"
animations: [
RotateTransition {
id: rotButton
toAngleZ: 360
duration: 350
}
]
onClicked: {
rotButton.play();
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment