CSS3 Picture Rotation Special effect

Source: Internet
Author: User


CSS3 let the picture rotate degrees, 60 degrees, degrees, and so on, you can extrapolate, the following by the number of degrees of sample code, like friends can refer to the following


 


Because I can't show it, I just cut a picture.

Here is the implementation code:


Copy Code code as follows:


<style>


p#socialicons img{/* 1st set of icons. Rotate them deg 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


-webkit-transform:rotate


-o-transform:rotate


-ms-transform:rotate


transform:rotate


}


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-deg 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


-webkit-transform:rotate


-o-transform:rotate


-ms-transform:rotate


transform:rotate


}


</style>


<b>rotation onmouseover and 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 rotation 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>-degree rotation 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>

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.