<img src="https://cdn4.iconfinder.com/data/icons/logos-3/426/react_js-512.png" class="rotate"/>

body{
  text-align:center;
  padding:3rem;
}

.rotate{
   width:80px;
   height:80px;
   animation: rotation infinite 3s linear;
}

@keyframes rotation{
  from{
    transform:rotate(0deg);
  }
  
  to{
    transform:rotate(360deg);
  }
}
Run Pen

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.