I have a vertical layout group with two elements as a child.
I want to have one element outside of its container.
On this case the Element 1 is outside of the container and the user can’t see it.
I also want to animate both elements when some event occurs in such a way that the element from the top moves to the place of the bottom one, and the bottom to move below outside of the boundaries of the container. Also I need the container to adapt its width to the size of the element that will be displayed.
Messing with paddings I can come up to some workaround, but I can’t animate them, I don’t know why it doesn’t let me
Something like an offset for this elements would fit perfectly for this feature, but I can’t find a way for doing that.
Also something like max width would help a lot.
How can I achieve this with the tools that Unity currently has?