Interactive component resizing upwards?

I would like to create a ‘flyout menu’ as an interactive component, that expands upwards from the bottom of the screen when clicked (see screenshot below).

However, it only seems possible to animate the size change from the top-left (i.e. the menu grows downwards). Is there a way to set the relative position somehow, so the menu will expand upwards?