ReelImage.qml 793 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. import QtQuick 2.0
  2. import "../.."
  3. ArtImage {
  4. id: root
  5. property bool reviewed: false
  6. function bowOut() {
  7. deathBow.start()
  8. }
  9. transform: Rotation {
  10. id: evilAxis
  11. origin.x: root.width/2
  12. origin.y: root.height
  13. axis { x: 1; y: 0; z: 0 }
  14. }
  15. SequentialAnimation {
  16. id: deathBow
  17. // PropertyAction {
  18. // target: root
  19. // property: "z"
  20. // value: root.z + 1
  21. // }
  22. NumberAnimation {
  23. easing.type: "InQuad"
  24. target: evilAxis
  25. property: "angle"
  26. from: 0
  27. to: 90
  28. duration: 3000
  29. }
  30. PropertyAction {
  31. target: root
  32. property: "visible"
  33. value: false
  34. }
  35. }
  36. }