I am creating GUI menu for selecting different materials for the mesh. So when you click on sphere you get the menu to chose material that you want. I want to be some kind of cool effect on that showing process. You can see in the example bellow that I am using the scaleX and scaleY properties of the rect1 element. My goal is to animate that effect, so looks like it is gradually scaling up to full size.
My question is how can I animate those properties, or is there some other way of doing this.
In the example bellow I animated alpha property of the rect1, but I cannot find a way to animate those scaleX and scaleY properties.