I'm creating a UI animation for a phone. I've got it so the menu transitions slowly moves in from the side. However as you can see the menu can be seen coming in from outside of the screen like the image below.
How can I make it so the layer can only be seen within the green rectangle, so I can keep the same transition, but you can only see it occur within the phones screen?