SequenceAnimationm in Behaviour for different values?
-
hello guys,
so I have:
Rectangle { id: rect color: "white" Behavior on color { SequentialAnimation { loops: 1 ColorAnimation { from: "white"; to: "green"; duration: 500 } ColorAnimation { from: "green"; to: "white"; duration: 500 } } } }
and when i wanted to trigger the blink from white to green and then back to white, i used call from JS like this:
rect.color = "green" rect.color = "white"
however now I need to decide which color to blink (if current white -> green -> white) or another (white -> red -> white).
Honesly I have no idea how to do this, I cant put two sequentionalAnimations inside one behaviour, so please guys help me here how do I chose which color to blink
-