Fullscreen Expanding Div (CodePen)

Hello everyone!

I have been trying to adapt the code at this link to Webflow with a close button to shrink back the div, but couldn’t. Maybe someone can help?

Thanks!