<img src="http://i.imgur.com/uUYXqAv.png">
img {  
  width: 100%;
}
I want to make the earth spinning.
<img src="http://i.imgur.com/uUYXqAv.png">
img {  
  width: 100%;
}
I want to make the earth spinning.
 
    
    Hi you can use keyframes:
img {
    position: absolute;   
    width: 100%;
    -webkit-animation:spin 4s linear infinite;
    -moz-animation:spin 4s linear infinite;
    animation:spin 4s linear infinite;
}
@-moz-keyframes spin { 100% { -moz-transform: rotate(360deg); } }
@-webkit-keyframes spin { 100% { -webkit-transform: rotate(360deg); } }
@keyframes spin { 100% { -webkit-transform: rotate(360deg); transform:rotate(360deg); } }
See here:
 
    
    You can use CSS transforms.
img {
  transform:rotate(ydeg);
}
( y being any number between 0 and 360 )
If you want to animate it you can use keyframes - https://codepen.io/quangogage/pen/OjYvNG?editors=1111
 
    
    Below is my code. My jsFiddle.
img {    
width: 100%;
animation: rotate 60s ease infinite;
-webkit-animation: rotate 60s ease infinite;
}
@keyframes rotate{
  100%{ transform: rotate(360deg); }
}
@-webkit-keyframes rotate{
  100%{ transform: rotate(360deg); }
}<img src="http://i.imgur.com/uUYXqAv.png"> 
    
    You can use a script that sets a variable and then have a function set an interval to rotate your picture.
var start = 0;
$(document).ready(function() {
     setInterval(function() {
          $("picture").rotate(start);
     }, 100);
});
