Rotate image in CSS3
1. HTML Code
<section class="social"> <a href="#"><img alt="Share to Facebook" src="images/social-facebook.png"></a> <a href="#"><img alt="Share to Twitter" src="images/social-twitter.png"></a> <a href="#"><img alt="Digg This" src="images/social-digg.png"></a> <a href="#"><img alt="Stumble It" src="images/social-stumble-upon.png"></a> <a href="#"><img alt="Share to Reddit" src="images/social-reddit.png"></a> <a href="#"><img alt="Share to Delicious" src="images/social-delicious.png"></a> <a href="#"><img alt="Technorati" src="images/social-technorati.png"></a> <a href="#"><img alt="LinkedIn" src="images/social-linkedin.png"></a> <a href="#"><img alt="Google Buzz" src="images/social-buzz.png"></a> <a href="#"><img alt="Blogger" src="images/social-blogger.png"></a> <a href="#"><img alt="More..." src="images/more.png"></a> </section>2. CSS3
<style type="text/css"> section.social { clear: both; display: block; margin-top: 20px; text-align: center; } section.social a { margin: 0; outline: medium none; padding: 0 2px; cursor: pointer; } section.social a img { -moz-transition: all 0.5s ease-in-out 0s; -webkit-transition: all 0.5s ease-in-out 0s; border: medium none; } section.social a:hover img { -moz-transform: rotate(360deg) scale(1.2, 1.2); -webkit-transform: rotate(360deg) scale(1.2, 1.2); } </style>
Comments
Post a Comment