It can be done with a plugin or write your own animation code …
The Ruby Script Examples (in the Extension Warehouse) by the SketchUp team has an example spinner animation script.
This discussion also has simple sample code … Recommendations for animation code?
… as well as this … Rotation in a view plane