if you're using font-awesome, you can add the class fa-spin
to your element, it's built in and requires you to add 7 extra characters!! Beats manually writing the css3 animation and toggling the class with javascript.
Just make an element like so,
<i class="fa fa-refresh fa-spin"></i>
and watch that puppy spin.
Refer to fontawesome's spinning docs if you have any concerns