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