Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Why not?

  (function () {
    var d=1;
    setInterval(function () {
       $('#Earth-Illustration').css({'webkit-transform':
       'rotate(' + ((d>36) ? d=2 : d++)*10 + 'deg)'})},100);
  }());
Please, consider Africa as Asia ;)


Perhaps you meant `transform`, which will actually work in WebKit browsers (you forgot the leading `-`) and also be translated by jQuery to other browsers' prefixed property names.


tested in Chrome only...and only "transform" didn't work, I had to add "webkit-" to work...to make simple, I prefered not put the moz line




Consider applying for YC's Winter 2027 batch! Applications are open till November 2.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: