[Solved]Re position an animated object to previous location
-
Hi,
What I want to do is very simple. Once an animation has been triggered for an object, I want it to go back to the original position.
Let's say I have something that will move from location y to y+50. Okay, it's moved great, but now it's stuck there. I am intending it to re position itself to location y, but have no clue how to achieve that.
Anyone that could help me out on this one?
-
Hi,
You can use "reversible":http://qt-project.org/doc/qt-5/qml-qtquick-transition.html#reversible-prop property in states and transitions.
-
[quote author="p3c0" date="1408965760"]Hi,
You can use "reversible":http://qt-project.org/doc/qt-5/qml-qtquick-transition.html#reversible-prop property in states and transitions.[/quote]
Ah, ok. Not as complicated as I would've thought.
Thx