Moving Something separate times with one script

Why are you coding all this movement?

Just make a simple canned animation and trigger it when needed.

Another approach would be to use a tweening package such as LeanTween, DOTween or iTween.

While you are animating UI stuff, make sure you get the anchoring / scaling correct or you’ll end up redoing it again and again.

Here are some notes on UI Anchoring, Scaling, CanvasScaler, etc:

Usually you need to choose a suitable ScaleMode and MatchMode in the Canvas Scaler and stick with it 100%. Generally if you change those settings you will often need to redo your UI entirely.

I also use this CanvasScalerOrientationDriver utility to make sharing UI for Landscape / Portrait easier. Read what it does carefully.