Circular rotation sharing button for pure CSS3

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.