how do i animate objects

okay so i was playing halo reach custom games with some friends. we found a map called Aliens a final level. parts of it was animated like a door closing. does anyone knownhiw to do something like that? i know how to make something spawn in after the start of the map but i dont know about the animated part? please help???

Youtube it.