Dynamically increase height of page and components

I want to achieve that when user clicks the button, i want to increase the height of page and group and also changes the position Y of button.
The page has a sidebar, menu bar and in center, it has a group and the page has fixed layout.

You may use custome state of type (yes/no) for this, so when the user click on the button set that custom state to be yes, then the gruops have to have conditionals to set the height to certain value when that custom state is yes.

You can try to add and use GSAP library if familiar with code