Before you have introduced several CSS3 buttons, today to introduce to you is a pure CSS3 realization of the circular rotation sharing button. The angle of rotation can be adjusted by itself. Three angular rotations are shown in the demo. 360 degrees, 60 degrees, 360 degrees.
Online preview Source Download
Look at the implementation code:
HTML code:
<b>Degree spin onMouseover and onmouseout</b></P> <PID= "Socialicons"> <ahref= "http://www.w2bc.com/"> <imgBorder= "0"src= "Rss.png" /></a> <ahref= "http://www.w2bc.com/"> <imgBorder= "0"src= "Delicious.png" /></a> <ahref= "http://www.w2bc.com/"> <imgBorder= "0"src= "Facebook.png" /></a> <ahref= "http://www.w2bc.com/"> <imgBorder= "0"src= "Twitter.png" /></a> <ahref= "http://www.w2bc.com/"> <imgBorder= "0"src= "Yahoo.png" /></a> </P> <P> <b>Degree spin onMouseover and onmouseout</b></P> <PID= "Socialicons2"> <ahref= "http://www.w2bc.com/"> <imgBorder= "0"src= "Rss.png" /></a> <ahref= "http://www.w2bc.com/"> <imgBorder= "0"src= "Delicious.png" /></a> <ahref= "http://www.w2bc.com/"> <imgBorder= "0"src= "Facebook.png" /></a> <ahref= "http://www.w2bc.com/"> <imgBorder= "0"src= "Twitter.png" /></a> <ahref= "http://www.w2bc.com/"> <imgBorder= "0"src= "Yahoo.png" /></a> </P> <P> <b>-360 degree spin onMouseover only</b></P> <PID= "Socialicons3"> <ahref= "http://www.w2bc.com/"> <imgBorder= "0"src= "Rss.png" /></a> <ahref= "http://www.w2bc.com/"> <imgBorder= "0"src= "Delicious.png" /></a> <ahref= "http://www.w2bc.com/"> <imgBorder= "0"src= "Facebook.png" /></a> <ahref= "http://www.w2bc.com/"> <imgBorder= "0"src= "Twitter.png" /></a> <ahref= "http://www.w2bc.com/"> <imgBorder= "0"src= "Yahoo.png" /></a> </P>
CSS code:
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); }
Note: This article Love programming original article, reproduced please specify the original address: http://www.w2bc.com/Article/4762
Circular rotation sharing button for pure CSS3