Change transform origin in interaction?

Hi all! I’m building out some interactions to eventually use in my portfolio site, I’d love some help getting a potential idea off the ground.

If you click the center image, the divs that will be my page transition animate IN from the center the way I want them. For the time, I’ve simply reversed their motion on a second click (will eventually be hooked up as a full transition).

Is it possible to change the transform-origin so that it animates OUT from the center on the second interaction? Thanks!

Here is my public share link