Welcome to Delicate template
Header
Just another WordPress site
Header

css3让图片旋转

3月 15th, 2013 | Posted by 无 名 in css

使用css3,当鼠标移到图片上时,让其旋转。
代码如下:

img { display:block;}
img:hover { -webkit-transition:all 0.7s linear; -webkit-transform:rotate(6.28rad); transition:all 0.7s; transform:rorate(6.28rad);}

对象必须为块级元素,block。
也就是jquery官网里面的哪个旋转图片。

You can follow any responses to this entry through the RSS 2.0 Both comments and pings are currently closed.