ReelImage.qml 758 B

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