<div id="ball"><img src="http://www.mrszhao.com/zb_users/upload/2018/01/rotate/images/bg-gear-f_089274a.png"></div>
body{
  background-color:#333;
  padding:50px;
}
#ball{
  width:126px;
  height:126px;
  animation:rotate 5s linear infinite ;
 
}

@keyframes rotate{
  0%{
    transform:rotate(0);
  }
  100%{
    transform:rotate(360deg);
  }
}

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.