由于没法展示效果只是截了个图
CSS3图片旋转特效(360/60/-360度) 
下面是实现代码:

复制代码代码如下:
<style>
p#socialicons img{ /* 1st set of icons. Rotate them 360deg onmouseover and out */
-moz-transition: all 0.8s ease-in-out;
-webkit-transition: all 0.8s ease-in-out;
-o-transition: all 0.8s ease-in-out;
-ms-transition: all 0.8s ease-in-out;
transition: all 0.8s ease-in-out;
}
p#socialicons img:hover{
-moz-transform: rotate(360deg);
-webkit-transform: rotate(360deg);
-o-transform: rotate(360deg);
-ms-transform: rotate(360deg);
transform: rotate(360deg);
}
p#socialicons2 img{ /* 2nd set of icons. Rotate them 60deg onmouseover and out */
-moz-transition: all 0.2s ease-in-out;
-webkit-transition: all 0.2s ease-in-out;
-o-transition: all 0.2s ease-in-out;
-ms-transition: all 0.2s ease-in-out;
transition: all 0.2s ease-in-out;
}
p#socialicons2 img:hover{
-moz-transform: rotate(70deg);
-webkit-transform: rotate(70deg);
-o-transform: rotate(70deg);
-ms-transform: rotate(70deg);
transform: rotate(70deg);
}
p#socialicons3 img{ /* 3rd set of icons. Rotate them -360deg onmouseover ONLY. Note where the "transition prop is added */
}
p#socialicons3 img:hover{
-moz-transition: all 0.5s ease-in-out;
-webkit-transition: all 0.5s ease-in-out;
-o-transition: all 0.5s ease-in-out;
-ms-transition: all 0.5s ease-in-out;
transition: all 0.5s ease-in-out;
-moz-transform: rotate(-360deg);
-webkit-transform: rotate(-360deg);
-o-transform: rotate(-360deg);
-ms-transform: rotate(-360deg);
transform: rotate(-360deg);
}
</style>
<b>360度旋转 onmouseover和onmouseout</b></p>
<p id="socialicons">
<a href="#">
<img border="0" src="/UploadFiles/2021-03-30/rss.png"><a href="#">
<img border="0" src="http://www.zzsck.org/wp-content/uploads/2013/10/delicious.png"><a href="#">
<img border="0" src="/UploadFiles/2021-03-30/facebook.png"><a href="#">
<img border="0" src="http://www.zzsck.org/wp-content/uploads/2013/10/twitter.png"><a href="#">
<img border="0" src="/UploadFiles/2021-03-30/yahoo.png"></p>
<p><b>60度旋转 onMouseover and onMouseout</b></p>
<p id="socialicons2">
<a href="#">
<img border="0" src="/UploadFiles/2021-03-30/rss.png"><a href="#">
<img border="0" src="http://www.zzsck.org/wp-content/uploads/2013/10/delicious.png"><a href="#">
<img border="0" src="/UploadFiles/2021-03-30/facebook.png"><a href="#">
<img border="0" src="http://www.zzsck.org/wp-content/uploads/2013/10/twitter.png"><a href="#">
<img border="0" src="/UploadFiles/2021-03-30/yahoo.png"></p>
<p><b>-360度旋转 onMouseover</b></p>
<p id="socialicons3">
<a href="#">
<img border="0" src="/UploadFiles/2021-03-30/rss.png"><a href="#">
<img border="0" src="http://www.zzsck.org/wp-content/uploads/2013/10/delicious.png"><a href="#">
<img border="0" src="/UploadFiles/2021-03-30/facebook.png"><a href="#">
<img border="0" src="http://www.zzsck.org/wp-content/uploads/2013/10/twitter.png"><a href="#">
<img border="0" src="/UploadFiles/2021-03-30/yahoo.png"></p>

标签:
CSS3,图片旋转

免责声明:本站文章均来自网站采集或用户投稿,网站不提供任何软件下载或自行开发的软件! 如有用户或公司发现本站内容信息存在侵权行为,请邮件告知! 858582#qq.com
岱庙资源网 Copyright www.zgmyg.com

评论“CSS3图片旋转特效(360/60/-360度)”

暂无“CSS3图片旋转特效(360/60/-360度)”评论...

RTX 5090要首发 性能要翻倍!三星展示GDDR7显存

三星在GTC上展示了专为下一代游戏GPU设计的GDDR7内存。

首次推出的GDDR7内存模块密度为16GB,每个模块容量为2GB。其速度预设为32 Gbps(PAM3),但也可以降至28 Gbps,以提高产量和初始阶段的整体性能和成本效益。

据三星表示,GDDR7内存的能效将提高20%,同时工作电压仅为1.1V,低于标准的1.2V。通过采用更新的封装材料和优化的电路设计,使得在高速运行时的发热量降低,GDDR7的热阻比GDDR6降低了70%。