Trying to move UI Elements but they are not working

I am having issues with the RectTransform.rect as I just want to change the value of top in code but setting the Miny value is not working and I get the error that its read only.


This is the interface that I am trying to make. I cannot use the animator as all the tabs are parented to each other I could un-parent them but the animation tree will be huge and will be very time consuming to create. I just want to Lerp the top value

fixed it by just using it as a standard transform and not RectTransform.