Advertisement
Dmitriiiiiqiq

Untitled

Mar 23rd, 2023
154
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.71 KB | None | 0 0
  1. import QtQuick
  2.  
  3. ShaderEffect {
  4. id: genieEffect
  5. width: 160; height: width
  6. anchors.centerIn: parent
  7. property variant source
  8. mesh: GridMesh { resolution: Qt.size(10, 10) }
  9. property real minimize: 0.0
  10. property real bend: 0.0
  11. property bool minimized: false
  12. property real side: 1.0
  13.  
  14.  
  15. ParallelAnimation {
  16. id: animMinimize
  17. running: genieEffect.minimized
  18. SequentialAnimation {
  19. PauseAnimation { duration: 300 }
  20. NumberAnimation {
  21. target: genieEffect; property: 'minimize';
  22. to: 1; duration: 700;
  23. easing.type: Easing.InOutSine
  24. }
  25. PauseAnimation { duration: 1000 }
  26. }
  27. SequentialAnimation {
  28. NumberAnimation {
  29. target: genieEffect; property: 'bend'
  30. to: 1; duration: 700;
  31. easing.type: Easing.InOutSine }
  32. PauseAnimation { duration: 1300 }
  33. }
  34. }
  35.  
  36. ParallelAnimation {
  37. id: animNormalize
  38. running: !genieEffect.minimized
  39. SequentialAnimation {
  40. NumberAnimation {
  41. target: genieEffect; property: 'minimize';
  42. to: 0; duration: 700;
  43. easing.type: Easing.InOutSine
  44. }
  45. PauseAnimation { duration: 1300 }
  46. }
  47. SequentialAnimation {
  48. PauseAnimation { duration: 300 }
  49. NumberAnimation {
  50. target: genieEffect; property: 'bend'
  51. to: 0; duration: 700;
  52. easing.type: Easing.InOutSine }
  53. PauseAnimation { duration: 1000 }
  54. }
  55. }
  56.  
  57. vertexShader: "genieeffect.vert.qsb"
  58. }
  59.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement