UI elements moving for seemingly no reason

You should not need to animate it to hold it in place. In fact, depending on what property you animate, that might even be making it move!

UI should just stay where it is, barring something else moving it.

Common things that move stuff in a UI:

  • layouts (GridLayout Group, HorizontalLayout, VerticalLayout, etc)
  • anchoring / offsetting (or rather, mis-anchoring)
  • animations
  • code

For code, if you have a someOtherThingTransform. reference that you intend to use to move something else, and that script happens to be ON a UI item, but you inadvertently use transform. instead, then you might get weird things happening.

Finally, here’s some reading on UI Anchoring, Scaling, CanvasScaler, etc: