How to make a functional door with opening and closing animation?

do you have a timeline set up already?