Okay, I know this doesn't answer your question, but don't get me wrong. A logo is meant to be the way it was designed - upright, no flipping/ swiveling animation. Why exactly do you want to let your logo turn around?
If its to grab attention, why dont you consider animating the area on which your logo sits (header)? Or maybe add nice transitive slideshows on your main content area to add more interactivity?
Which version of Photoshop?
In CS6 one can create an Animation with Window > Timeline (feel free to refer to the Help for details) which can be saved as an animated gif (provided it is of »reasonable« size and duration) via File > Save for Web …