Yes it works but… I will prefer to add a key to the animation and animate the value, I think it is a better way to do that.