Just imagine a door that slides inside a frame that is concealed before you slide it closed. So when it is half done, you only see half the door. I never should have mentioned scaling. I'm just wondering broadly how to do that. I'm pretty sure I could work out the details. Maybe somebody has a clever idea.
Can I use z value effectively with gsap to determine which <div>s are on top? Or, in my sliding door example, on bottom?