Button Animation with Layouts

Hey friends - what is the go to way for creating simple animations for buttons that are fully created using Layouts?

Let's say i have a super simple button which uses layouts to create the dynamic box behind the textbox:

Say i want to shrink the button down on click or up on hover - how do we handle this the right way? Since layouts can not be grouped and size properties disappear when you make everything hug and fill with layouts - what is the best practise here?

Thanks in advance for any cool tricks!