There is no exact way. This is because the frame is simply set directly. The animation takes care of the transition, but in fact there is no transition.
There are several ways to evaluate what the current frame size is, and for me the best thing is a simple math solution using a timer when the animation starts and the duration of the animation.
But, again, this is probably the best if you are just different, as it will certainly affect the cost and accuracy of the code.
This is my first post, and I really donβt know anything about it, just studying and trying to help.
user2344303
source share