I want to stop an animation something like this:
Behavior on x {
NumberAnimation {
id: animationElement
duration: 100
}
}
...
if (something)
{
animationElement.stop()
}
but this code gives me error, that stop() cannot be used on non-root animation nodes.
It’s possibly stopping animation from outside?
This works fine for me :