I think you want a func_door_rotating.
http://www.superjer.com/learn/func_door_rotating.php
Just make sure to set the flag for "X Axis" or "Y Axis" to get it to rotate the way you want. By default it will rotate around the Z Axis, which goes straight up and down.