Let div push another div out of viewport (interaction)

Hi all,

Hope someone can help me out here. I am trying to set up an interaction that pushes my ‘slider-wrapper’ up and out of the viewport, when my ‘project-info-wrapper’ moves up, by clicking the info-icon in the upper left corner. As a workaround, I have made this possible by giving the ‘project-info-wrapper’ a height in % (and by pushing both divs up by the same %), but what I really want is to be able to give the ‘project-info-wrapper’ a flexible height, based on the content and then again move both divs up, by the same interaction.

I hope above illustration makes it clear.

Webflow - Fullscreen)

Hope someone can help
Thanks in advance!