spin animation css refactoring