一款纯css3实现的圆形旋转分享按钮旋转角度可自
建站知识 2021-07-03 08:15www.168986.cn长沙网站建设
之前已经为大家介绍了好几款css3按钮,今天要为大家介绍的是一款纯css3实现的圆形旋转分享按钮。旋转的角度可以自己调整。在demo中演示了三个角度旋转。360度,60度,-360度。如图
看下实现代码
html代码
<b>360 degree spin onMouseover and onMouseout</b></p>
<p id="socialicons">
<a href="http://.w2bc./">
<img border="0" src="rss.png" /></a> <a href="http://.w2bc./">
<img border="0" src="delicious.png" /></a> <a href="http://.w2bc./">
<img border="0" src="facebook.png" /></a> <a href="http://.w2bc./">
<img border="0" src="twitter.png" /></a> <a href="http://.w2bc./">
<img border="0" src="yahoo.png" /></a>
</p>
<p>
<b>60 degree spin onMouseover and onMouseout</b></p>
<p id="socialicons2">
<a href="http://.w2bc./">
<img border="0" src="rss.png" /></a> <a href="http://.w2bc./">
<img border="0" src="delicious.png" /></a> <a href="http://.w2bc./">
<img border="0" src="facebook.png" /></a> <a href="http://.w2bc./">
<img border="0" src="twitter.png" /></a> <a href="http://.w2bc./">
<img border="0" src="yahoo.png" /></a>
</p>
<p>
<b>-360 degree spin onMouseover ONLY</b></p>
<p id="socialicons3">
<a href="http://.w2bc./">
<img border="0" src="rss.png" /></a> <a href="http://.w2bc./">
<img border="0" src="delicious.png" /></a> <a href="http://.w2bc./">
<img border="0" src="facebook.png" /></a> <a href="http://.w2bc./">
<img border="0" src="twitter.png" /></a> <a href="http://.w2bc./">
<img border="0" src="yahoo.png" /></a>
</p>
css代码
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);
}
看下实现代码
html代码
复制代码
代码如下:<b>360 degree spin onMouseover and onMouseout</b></p>
<p id="socialicons">
<a href="http://.w2bc./">
<img border="0" src="rss.png" /></a> <a href="http://.w2bc./">
<img border="0" src="delicious.png" /></a> <a href="http://.w2bc./">
<img border="0" src="facebook.png" /></a> <a href="http://.w2bc./">
<img border="0" src="twitter.png" /></a> <a href="http://.w2bc./">
<img border="0" src="yahoo.png" /></a>
</p>
<p>
<b>60 degree spin onMouseover and onMouseout</b></p>
<p id="socialicons2">
<a href="http://.w2bc./">
<img border="0" src="rss.png" /></a> <a href="http://.w2bc./">
<img border="0" src="delicious.png" /></a> <a href="http://.w2bc./">
<img border="0" src="facebook.png" /></a> <a href="http://.w2bc./">
<img border="0" src="twitter.png" /></a> <a href="http://.w2bc./">
<img border="0" src="yahoo.png" /></a>
</p>
<p>
<b>-360 degree spin onMouseover ONLY</b></p>
<p id="socialicons3">
<a href="http://.w2bc./">
<img border="0" src="rss.png" /></a> <a href="http://.w2bc./">
<img border="0" src="delicious.png" /></a> <a href="http://.w2bc./">
<img border="0" src="facebook.png" /></a> <a href="http://.w2bc./">
<img border="0" src="twitter.png" /></a> <a href="http://.w2bc./">
<img border="0" src="yahoo.png" /></a>
</p>
css代码
复制代码
代码如下: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);
}
长沙网站设计
- 如何进行东阳SEO关键词优化?
- 边坝哪有关键词排名优化:提升你的网站流量与
- 安国百度优化服务:提升您的在线可见性
- 阜康新手做SEO怎么做
- 山西seo网站排名关键词优化:提升您网站曝光率
- 临沂seo网站排名关键词优化:提高你的网站可见
- 广西SEO网站推广怎样付费比较合理
- 双辽SEO网站推广:提升你的网站可见性与流量
- 辽宁企业网站优化购买方式有哪些
- 提升宝清百度SEO排名的实用技巧与策略
- 静宁百度SEO排名:提升您网站曝光率的关键策略
- 彭州百度SEO排名的提升策略和实施指南
- 广南百度关键词SEO:提升网站排名的关键策略
- 辽宁关键词优化怎么做论坛营销
- 吉林百度seo排名如何做到让用户满意
- 内黄百度优化服务:提升在线可见性的关键