图片可以360度旋转类似广告代码


图片可以360度旋转类似广告代码

<div style='height:60px; line-height:50px; text-align:center; color: #b2b2b2;'>


<style>
.picture_xwo img {
100%;
height: 60px;
/*设置图像的长和宽,这里要根据自己的情况更改*/
border-radius: 10px;
/*设置图像圆角效果,在这里我直接设置了超过width/2的像素,即为圆形了*/
-webkit-border-radius: 5px;
/*圆角效果:兼容webkit浏览器*/
-moz-border-radius: 10px;
box-shadow: inset 0 -1px 0 #3333sf;
/*设置图像阴影效果*/
-webkit-box-shadow: inset 0 -1px 0 #3333sf;
-webkit-transition: 0.4s;
-webkit-transition: -webkit-transform 0.4s ease-out;
transition: transform 3s ease-out;
/*变化时间设置为5秒(变化动作即为下面的图像旋转360度)*/
-moz-transition: -moz-transform 0.4s ease-out;
}
.picture_xwo img:hover {
/*设置悬浮在CSS样式*/
box-shadow: 0 0 10px #fff;
rgba(255, 255, 255, .6), inset 0 0 20px rgba(255, 255, 255, 1);
-webkit-box-shadow: 0 0 10px #fff;
rgba(255, 255, 255, .6), inset 0 0 20px rgba(255, 255, 255, 1);
transform: rotateZ(360deg);
-webkit-transform: rotateZ(360deg);
-moz-transform: rotateZ(360deg);
}
</style>
<div class="picture_xwo">
<a target="_blank" href="http://sgh.aimovie.org/club/forum/Vurbz0NZJSfV86SS">
<img border="0" src="http://s4.55.la/anonymous/banner/2016/06/14/01/10711232.gif" width="100%" height="130">
</a>
</div>


</div>


演示效果:
2016年06月14日 - 小小鱼儿小小林 - 小小鱼儿小小林的网易博客
 
原文地址:https://www.cnblogs.com/jalenFish/p/14099109.html