0

This code allows me to slowly rotate images whenever the mouse is over one of them.

 .foo img {
     -webkit-transition: all 0.5s ease;
     -moz-transition: all 0.5s ease;
       -o-transition: all 0.5s ease;
      -ms-transition: all 0.5s ease;
          transition: all 0.5s ease;
    }
     .foo img:hover {
      -webkit-transform: rotate(-10deg);
     -moz-transform: rotate(-10deg);
      -o-transform: rotate(-10deg);
      -ms-transform: rotate(-10deg);
          transform: rotate(-10deg);
    }

It works in FF18 and Opera. However, I can't get it to work on IE9, even is -ms-transform should be the proper solution. IE9 acts as if there's no specific css img:hover rule. Any hints? thanks

flapane
  • 543
  • 2
  • 8
  • 21

1 Answers1

1

http://modernizr.com/download/

Modernizr should do the trick.

Michael
  • 7,016
  • 2
  • 28
  • 41
  • Thanks. I don't want to use js for this particular task, but I've added modernizr to my bookmarks. – flapane Feb 01 '13 at 22:48