Door animation

I am trying to make a building walkthough that show a building for a client. What im wanting to do is make it so that when you come up to a door it pops up with a message “press e to open” then when u press e it opens and u can enter but then on your way out if u press e again it closes.

Im not squite sure how to go about making a double animation play as for the open first time and close the second or if you come back up to it you can then do it again.

I would use a Box Collider with the OnTriggerEnter() function and the Animation(which is ctrl + 6) to do It.