手机
当前位置:查字典教程网 >网页设计 > Div+Css教程 >CSS3图片旋转特效(360/60/-360度)
CSS3图片旋转特效(360/60/-360度)
摘要:由于没法展示效果只是截了个图下面是实现代码:p#socialiconsimg{/*1stsetoficons.Rotatethem360de...

由于没法展示效果只是截了个图

1

下面是实现代码:

<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="http://www.zzsck.org/wp-content/uploads/2013/10/rss.png" _fcksavedurl=""http://www.zzsck.org/wp-content/uploads/2013/10/rss.png"" /></a>

<a href="#">

<img border="0" src="http://www.zzsck.org/wp-content/uploads/2013/10/delicious.png" /></a>

<a href="#">

<img border="0" src="http://www.zzsck.org/wp-content/uploads/2013/10/facebook.png" /></a>

<a href="#">

<img border="0" src="http://www.zzsck.org/wp-content/uploads/2013/10/twitter.png" /></a>

<a href="#">

<img border="0" src="http://www.zzsck.org/wp-content/uploads/2013/10/yahoo.png" /></a>

</p>

<p><b>60度旋转 onMouseover and onMouseout</b></p>

<p id="socialicons2">

<a href="#">

<img border="0" src="http://www.zzsck.org/wp-content/uploads/2013/10/rss.png" /></a>

<a href="#">

<img border="0" src="http://www.zzsck.org/wp-content/uploads/2013/10/delicious.png" /></a>

<a href="#">

<img border="0" src="http://www.zzsck.org/wp-content/uploads/2013/10/facebook.png" /></a>

<a href="#">

<img border="0" src="http://www.zzsck.org/wp-content/uploads/2013/10/twitter.png" /></a>

<a href="#">

<img border="0" src="http://www.zzsck.org/wp-content/uploads/2013/10/yahoo.png" /></a>

</p>

<p><b>-360度旋转 onMouseover</b></p>

<p id="socialicons3">

<a href="#">

<img border="0" src="http://www.zzsck.org/wp-content/uploads/2013/10/rss.png" /></a>

<a href="#">

<img border="0" src="http://www.zzsck.org/wp-content/uploads/2013/10/delicious.png" /></a>

<a href="#">

<img border="0" src="http://www.zzsck.org/wp-content/uploads/2013/10/facebook.png" /></a>

<a href="#">

<img border="0" src="http://www.zzsck.org/wp-content/uploads/2013/10/twitter.png" /></a>

<a href="#">

<img border="0" src="http://www.zzsck.org/wp-content/uploads/2013/10/yahoo.png" /></a>

</p>

【CSS3图片旋转特效(360/60/-360度)】相关文章:

CSS图片垂直居中方法整理集合

CSS应用基础教程(6) 区块性质

CSS关于解决图片元素下多余空白的BUG

css图片透明效果

CSS+图片完成清爽绿色网站下拉菜单

纯CSS实现漂亮tab选项卡切换特效

CSS外框阴影效果

图片的翻转按钮怎么制作

CSS产生的特殊效果

CSS中图片于文本的基线对齐设置

精品推荐
分类导航