fix: handle animations by higher level nodes or states
This commit is contained in:
parent
b8dcbb6187
commit
e268edb988
|
@ -217,12 +217,12 @@ Rectangle {
|
|||
Transition {
|
||||
from: "COLLAPSED"
|
||||
to: "EXPANDED"
|
||||
NumberAnimation { properties: "height"; duration: 200; running: visible }
|
||||
NumberAnimation { properties: "height"; duration: 200;}
|
||||
},
|
||||
Transition {
|
||||
from: "EXPANDED"
|
||||
to: "COLLAPSED"
|
||||
NumberAnimation { properties: "height"; duration: 200; running: visible }
|
||||
NumberAnimation { properties: "height"; duration: 200;}
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
|
@ -212,8 +212,8 @@ Item {
|
|||
id: blinkingAnimation
|
||||
loops: Animation.Infinite
|
||||
running: visible
|
||||
NumberAnimation { target: inner; property: "opacity"; to: 0; duration: 800; running: visible }
|
||||
NumberAnimation { target: inner; property: "opacity"; to: 1; duration: 800; running: visible }
|
||||
NumberAnimation { target: inner; property: "opacity"; to: 0; duration: 800;}
|
||||
NumberAnimation { target: inner; property: "opacity"; to: 1; duration: 800;}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -52,7 +52,7 @@ Switch {
|
|||
|
||||
transitions: Transition {
|
||||
reversible: true
|
||||
NumberAnimation { properties: "x"; easing.type: Easing.Linear; duration: 120; running: visible }
|
||||
NumberAnimation { properties: "x"; easing.type: Easing.Linear; duration: 120}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue