Best way to animate the insertion of elements into a flow container?

Godot Version

4.5.1

Question

I was wondering if there were any tricks of the trade for animating GUI’s specifically for my case of inserting elements into them smoothly. I have the following UI and I would like for the user to be able to click or hover between these “tags” inside the flow container and space would be made for them to type more tags. Right now I am having trouble detecting where the space should be made based on the user’s cursor as well as some jittering when the elements switch rows. How would you approach this?

Thanks!

I would make a custom container since the default Control classes don’t really have much support for animation.