Creating a slider box

I want to create a menu that slides on and off the screen, like a door that moves to the left and right, when the user clicks a button.